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

Inconsistency with official libyara grammar #70

Open
AJohnson24 opened this issue Aug 22, 2023 · 0 comments
Open

Inconsistency with official libyara grammar #70

AJohnson24 opened this issue Aug 22, 2023 · 0 comments

Comments

@AJohnson24
Copy link

While attempting to parse a valid yara ruleset with the latest version of master, the following error was returned by gyp.Parse():
syntax error: unexpected _HEX_NUMBER_, expecting _NUMBER_

The relevant snippet of the line in the ruleset where the error occurred is as follows:
xor(0x01-0xff)

I've verified that no error is returned in v0.9.0, so I believe the bug was introduced in the latest commit, when the new _HEX_NUMBER_ and _OCT_NUMBER_ tokens introduced an inconsistency with the official libyara grammar, and the xor string modifiers definition was not updated.

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

No branches or pull requests

1 participant