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

Divisions by zero are parsed without error #142

Open
stepanek-m opened this issue Sep 10, 2020 · 0 comments
Open

Divisions by zero are parsed without error #142

stepanek-m opened this issue Sep 10, 2020 · 0 comments

Comments

@stepanek-m
Copy link
Contributor

YARA controls divisions by zero when parsing the file (e.g. it is not a runtime error). Yaramod parses those expressions without error.
I think that this ticket has low priority and I added it here just for completeness when I was searching for the corner cases where yaramod parser behaves differently from YARA parser.
Note that YARA even evaluates expressions during parsing so it detects error even in cases like

condition:
    5 \ (1 - 1)

. I'm not sure if we do this expression evaluation in yaramod, but if we don't do it, it maybe won't worth adding it just for detecting division by zero...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant