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

rule-parsing: quick fix for rules with wrong double quotes #1886

Closed
wants to merge 1 commit into from
Closed

rule-parsing: quick fix for rules with wrong double quotes #1886

wants to merge 1 commit into from

Conversation

norg
Copy link
Member

@norg norg commented Feb 29, 2016

The stripping of leading and trailing "s has issues with rules like the
ones described in issue 1638 thus resulted in crashing the rule parser.
So for now this is a quick fix which approaches this issue directly by
stripping those "s correctly and handling error cases. It also adds the
skip for leading spaces at the msg keyword and worksaround a possible
null pointer dereference (that should never occur though).
A more general approach should be done in the future.

This is a quick fix for https://redmine.openinfosecfoundation.org/issues/1638 and included the comments from the former PR #1884 and IRC suggestions.

The stripping of leading and trailing "s has issues with rules like the
ones described in issue 1638 thus resulted in crashing the rule parser.
So for now this is a quick fix which approaches this issue directly by
stripping those "s correctly and handling error cases. It also adds the
skip for leading spaces at the msg keyword and worksaround a possible
null pointer dereference (that should never occur though).
A more general approach should be done in the future.
@inliniac
Copy link
Contributor

inliniac commented Mar 3, 2016

Merged into master, thanks Andreas!

@inliniac inliniac closed this Mar 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants