8000 out_azure_kusto: fixed double free by tanmaya-panda1 · Pull Request #10261 · fluent/fluent-bit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

out_azure_kusto: fixed double free #10261

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

Merged
merged 1 commit into from
Apr 28, 2025

Conversation

tanmaya-panda1
Copy link
Contributor
@tanmaya-panda1 tanmaya-panda1 commented Apr 27, 2025

The pointer t is just a reference to an element within the tokens array, which is dynamically allocated using flb_calloc. When we free tokens at the end of the function, all memory associated with tokens (including the memory t points to) is automatically released. freeing t again results in double free scenario

fixes #10257


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:

  • Example configuration file for the change
  • Debug log output from testing the change
  • Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • Run local packaging test showing all targets (including any new ones) build.
  • Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • Documentation required for this feature

Backporting

  • Backport to latest stable release.

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.

8000

Signed-off-by: Tanmaya Panda <tanmayapanda@microsoft.com>
@edsiper edsiper added this to the Fluent Bit v4.0.2 milestone Apr 28, 2025
@tanmaya-panda1 tanmaya-panda1 force-pushed the fix/azure-kusto-double-free branch from ac8e6c1 to 6588489 Compare April 28, 2025 08:47
@edsiper edsiper merged commit 97ba3fd into fluent:master Apr 28, 2025
97 of 98 checks passed
@tanmaya-panda1
Copy link
Contributor Author

@edsiper @leonardo-albertovich This needs to be backported to v4.0.1 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fluent Bit 4.0.1 azure_kusto output plugin SIGSEV
2 participants
0