-
Notifications
You must be signed in to change notification settings - Fork 481
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
Null pointer dereference when parsing malformed config #1055
Comments
Thanks a lot for the detailed report. I don't think it warrants a cve but
|
Close to minimal configuration file: It's interesting that the segfault doesn't occur if the faulty line isn't the last in the file (even a newline character workarounds this issue). |
the problem seems to lie in the special $end token that is automatically generated by the grammar. This token does not have location information, so our error reporting function crashes. Let me see if there's an easy solution... |
The referenced branch should fix this issue. |
When syslog-ng tries to parse malformed config there is a null pointer dereference.
To see the issue, the issue need to be compiled with address sanitize.
Reproducer:
Is not common to download config file over the network, so it is on your judge if it is considered a security bug and needs to have a CVE assigned.
syslog.conf.txt
The text was updated successfully, but these errors were encountered: