Skip to content
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

out_s3: fix use-after-free in destructor #3738

Merged
merged 1 commit into from
Jul 10, 2021
Merged

out_s3: fix use-after-free in destructor #3738

merged 1 commit into from
Jul 10, 2021

Conversation

rittneje
Copy link
Contributor

@rittneje rittneje commented Jul 7, 2021

Signed-off-by: Jesse Rittner [email protected]

Fixes #3732.

cc @PettitWesley @DrewZhang13


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:

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

s3-fix-valgrind-results.txt

Documentation

  • [N/A] Documentation required for this feature

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.

@DrewZhang13
Copy link
Contributor

code looks good to me. Just the branch is out of date, please update the branch

@rittneje
Copy link
Contributor Author

rittneje commented Jul 8, 2021

@DrewZhang13 Rebased onto latest master.

@rittneje
Copy link
Contributor Author

rittneje commented Jul 8, 2021

@DrewZhang13 That test failure seems unrelated. Not sure what to do about it.

@DrewZhang13
Copy link
Contributor

can you re-run the checks see if it could be fixed?

@rittneje
Copy link
Contributor Author

rittneje commented Jul 9, 2021

@DrewZhang13 I don't think I have that ability on my end. Only thing I can do is push again to retrigger all the actions.

@DrewZhang13
Copy link
Contributor

Test pass this time, good to merge

@DrewZhang13
Copy link
Contributor

CC @PettitWesley

PettitWesley
PettitWesley previously approved these changes Jul 9, 2021
@PettitWesley
Copy link
Contributor

@rittneje Thanks for this!

Please rebase this commit with latest master and then we can merge it.

@rittneje
Copy link
Contributor Author

rittneje commented Jul 9, 2021

@PettitWesley rebased

@PettitWesley
Copy link
Contributor

@rittneje Please also submit this commit against the newly created 1.8 branch for 1.8.x releases

@edsiper edsiper merged commit ab4cf8b into fluent:master Jul 10, 2021
@rittneje rittneje deleted the out-s3-use-after-free branch July 11, 2021 04:09
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.

out_s3: use-after-free bug in s3_context_destroy
4 participants