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

Fix another compiler edge case. #1722

Merged
merged 2 commits into from
Jun 1, 2022

Conversation

wxsBSD
Copy link
Collaborator

@wxsBSD wxsBSD commented Jun 1, 2022

When compiling and we encounter a range that has values we can determine at
compile time we should error out if the lower bound is less than 0.

Fixes #1721 (at least part of it).

When compiling and we encounter a range that has values we can determine at
compile time we should error out if the lower bound is less than 0.
The OP_COUNT_IN operation does not need the paranoid check on r1 as it is the
lower bound of the range, and thus a constant and not a pointer somewhere. It
should, instead, be checking r3.

Fixes VirusTotal#1721 (the first half of it).
@plusvic plusvic merged commit ccbc405 into VirusTotal:master Jun 1, 2022
@wxsBSD wxsBSD deleted the more_compiler_edge_cases branch June 3, 2022 14:22
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.

[bug] - Error31 when using 'in' operation using newest YARA
2 participants