Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework raw variables matching #77

Merged
merged 10 commits into from
Oct 8, 2023
Merged

Conversation

vthib
Copy link
Owner

@vthib vthib commented Oct 8, 2023

Stop evaluating raw variables lazily, and do it during (or rather, after) the ac pass. This allows simplifying quite a lot of code, and will make it much easier to add handling of more complex scan data (for example process memory).

This is dead code since the raw matchers cannot have literals anymore.
Instead of scanning raw variables lazily when evaluating rules, do it
just after the AC pass. This is needed to make handling of process
scanning (or scanning of multiple bytes slices in general) much easier.
The old VariableEvaluation was not really useful anymore.
This covers a one in Matcher::find_next_match_at which was not properly
tested
@vthib vthib merged commit 74989e1 into master Oct 8, 2023
9 of 11 checks passed
@vthib vthib deleted the rework-raw-variables-matching branch October 8, 2023 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant