Skip to content

out_oracle_log_analytics: fix use-after-free on flush failure #10189

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 22, 2025

Conversation

rghouzra
Copy link
Contributor

@rghouzra rghouzra commented Apr 9, 2025

This pull request includes a small but important change to the cb_oci_logan_flush function in the oci_logan.c file. The change improves error handling by logging an error message when the flush operation fails instead of destroying the configuration context.

Copy link
Collaborator

@leonardo-albertovich leonardo-albertovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 1202 was clearly bad but please remove the new error message, it doesn't add anything as there already is another generic message that gets emitted when this happens.

@leonardo-albertovich
Copy link
Collaborator

Thank you!

@leonardo-albertovich leonardo-albertovich changed the title Fix use-after-free on flush failure by avoiding context destroy on retry out_oracle_log_analytics: fix use-after-free on flush failure Apr 9, 2025
@leonardo-albertovich
Copy link
Collaborator

One more thing, would it be possible for you to clean up the commit history (I assume by force pushing?) to remove the superfluous commits?

@leonardo-albertovich
Copy link
Collaborator

I'm sharing the guidelines in case they help you amend your PR : https://github.com/fluent/fluent-bit/blob/master/CONTRIBUTING.md#commit-changes

@rghouzra rghouzra force-pushed the master branch 2 times, most recently from bd212b4 to 7a8bbf0 Compare April 14, 2025 14:14
@edsiper edsiper merged commit 90ba311 into fluent:master Apr 22, 2025
2 checks passed
@edsiper edsiper added this to the Fluent Bit v4.0.1 milestone Apr 22, 2025
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.

3 participants