-
Notifications
You must be signed in to change notification settings - Fork 1.8k
engine: fix memory leaks with parse error handling in parse_string_map_to_list (backport of #10943). #10944
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
base: 4.0
Are you sure you want to change the base?
engine: fix memory leaks with parse error handling in parse_string_map_to_list (backport of #10943). #10944
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…p_to_list. Signed-off-by: Phillip Whelan <[email protected]>
b9a8d7c
to
fabaeb2
Compare
I am looking at the leaks and I think they are all caused by premature exit. There is one caused by not freeing the memory from
The other is caused somehow by the very same code I patched in
|
There are three other runs that have had the same or a similar problem:
Do we really need resilience to memory leaks in the face of fuzzers? should we keep them but allow them to be override? could we at the very least improve the logs to make them more consumable? I'm open to opinions from anyone on this one: @patrick-stephens, @edsiper. For now I restarted the CI Fuzz job in hopes that the RNG favors me this time. |
No such luck, it continues to fail. I will have to attempt to fix it by reproducing it locally, when I have the time. I still need to see why this is failing:
This patch should fix the leak in |
Fuzzing is intended to help find these types of issues so whilst it may be frustrating I am certainly of the opinion it should always be resolved. It is usually either an error with the fuzzer (so fix that) or the code (so fix that). |
Summary
This is a backport of #10943 to the 4.0 series.
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.