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
Wrong mmjsonparse cookie causing segfault #1983
Comments
Can you please post a concrete sample of the failing config? Seeing the PR I am unsure if I understand correctly. |
if you use something like |
ah, ok, this is what I initially understood. That means the proposed fix in #1985 is not correct as the problem is not in mmjsonparse but instead in the core engine's parameter processing. We need to create a testbench test first to ensure that the problem will actually be fixed. |
Well, IIRC rsyslog itself has no problem with either single or double quotes so how (generically) would you like to fix this? I proposed the fix in the mmjsonparse because this is like the only place where type of quotes matter. The core engine just hands the cookie value to the module, or am I wrong? |
These quotes, if they would work, would not make it into the place where you checked it. The core has to strip them. I also do not think that you can use single quotes for parameters (but I need to check). |
Ok, done more thorough debugging and it turns out there was yet another cause for the original problem, closing this. Thanks for quick reply by the way. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
using custom cookie (instead of default
"@cee"
) and enclosing it in single quotes instead of double ones causes whole rsyslog to segfault (possibly in loop, depending on further configuration).The text was updated successfully, but these errors were encountered: