Skip to content

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

Merged
edsiper merged 1 commit into
fluent:masterfrom
rghouzra:master
Apr 22, 2025
Merged

out_oracle_log_analytics: fix use-after-free on flush failure#10189
edsiper merged 1 commit into
fluent:masterfrom
rghouzra:master

Conversation

@rghouzra

@rghouzra rghouzra commented Apr 9, 2025

Copy link
Copy Markdown
Contributor

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.

@leonardo-albertovich leonardo-albertovich left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread plugins/out_oracle_log_analytics/oci_logan_conf.c Outdated
@leonardo-albertovich

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

Signed-off-by: rghouzra <rghouzra@student.1337.ma>
@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
@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