-
Notifications
You must be signed in to change notification settings - Fork 64
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
Bug: quoted-string in v2 including quotes in extracted value #186
Comments
I found a possible fix for this. src/parser.c#L1681, when the value is getting extracted, it does not strip off the quotes, unlike the OpQuotedParser does on L1636 right above it (+1 to the offset, -2 from the extracted length). I am not at a computer to submit a PR to fix this right now, but I can try to look into it hopefully this week unless someone else can do so faster. |
I can confirm this bug - however, I have not looked into testing @ontholerian 's suggested fix. |
I am running into the same problem, was this ever fixed? Thanks. |
Same issue here. Looks like pull request #344 – that might fix the issue – has some incomplete checks and is not merged because of that. |
The version 2 quoted-string parser is incorrectly including the surrounding quotes in the extracted value, unlike version 1.
Sample log
Version 1 ruleset
Version 1 works as expected
Version 2 ruleset
Version 2 has unexpected result
The text was updated successfully, but these errors were encountered: