-
Notifications
You must be signed in to change notification settings - Fork 72
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
Crash while parsing netfilter using regex #193
Comments
I believe this crash is caused by the optional modifier being set at the field level in access.log:
Command:
Running as is, will crash. But if you change I wish I knew more Rust and could submit a patch, but unfortunately, I'm not there in my learnings yet. Hopefully, this helps someone can. |
The Index trait for Captures panics if there is no match at a given index. Closes rcoh#193
The Index trait for Captures panics if there is no match at a given index. Closes rcoh#193
The Index trait for Captures panics if there is no match at a given index. Closes #193
While trying to write a regex that will parse netfilter logs, I managed to crash agrind (again, sorry!)
Command line:
I'm reasonably confident that the regex is correct - it's definitely the most complex I've ever done, but I debugged it with https://regex101.com/ using the rust setting, and all my test lines passed there for the above regex.
netfilter.logs
contents:FWIW, I'm hoping to contribute this back as an alias. Here's my WIP branch: https://github.com/fukawi2/angle-grinder/tree/phs/add-netfilter
report-9f23892a-d887-4a5e-bedc-cdf9b7c4ea85.txt
The text was updated successfully, but these errors were encountered: