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

Sagan faults with large input and certain pcre rules. #122

Open
beave opened this issue Aug 21, 2018 · 0 comments
Open

Sagan faults with large input and certain pcre rules. #122

beave opened this issue Aug 21, 2018 · 0 comments

Comments

@beave
Copy link
Owner

beave commented Aug 21, 2018

Describe the bug

libpcre faults when dealing with certain types of expressions. For example:

pcre: "/^((?!Account Name: (.)$ ).)$/";

Will work fine with smaller strings, but fault on large input. This was encountered when on sid 500343.

To Reproduce
Steps to reproduce the behavior:

  1. Enabled rule with the pcre above.
  2. using "logger" and "seq" send a large string.
  3. Sagan gets a fault

See this link for a similar described problem. This likely is a recursive limitation issue in the "match" function of PCRE. Non-JIT causes a crash, while JIT causes a miss (no match / falsely)

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