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

Fix memory leak in BmffImage::brotliUncompress #2428

Merged
merged 2 commits into from
Nov 27, 2022

Conversation

kevinbackhouse
Copy link
Collaborator

Fixes: #2427

Add a wrapper class named BrotliDecoderWrapper which automatically calls BrotliDecoderDestroyInstance in its destructor so that the BrotliDecoderState won't be leaked on exit.

@kevinbackhouse kevinbackhouse added bug OSS-Fuzz Bug reported by https://google.github.io/oss-fuzz/ labels Nov 27, 2022
@kevinbackhouse kevinbackhouse added this to the v1.00 milestone Nov 27, 2022
@codecov
Copy link

codecov bot commented Nov 27, 2022

Codecov Report

Merging #2428 (2739d90) into main (dcc203b) will increase coverage by 0.09%.
The diff coverage is 84.61%.

@@            Coverage Diff             @@
##             main    #2428      +/-   ##
==========================================
+ Coverage   64.54%   64.64%   +0.09%     
==========================================
  Files         119      119              
  Lines       21114    21119       +5     
  Branches    10421    10420       -1     
==========================================
+ Hits        13629    13653      +24     
+ Misses       5324     5300      -24     
- Partials     2161     2166       +5     
Impacted Files Coverage Δ
src/bmffimage.cpp 72.52% <84.61%> (+4.25%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@kmilos
Copy link
Collaborator

kmilos commented Nov 27, 2022

Thanks!

@kevinbackhouse kevinbackhouse merged commit 3551ceb into Exiv2:main Nov 27, 2022
@kevinbackhouse kevinbackhouse deleted the fix-issue-2427 branch November 27, 2022 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug OSS-Fuzz Bug reported by https://google.github.io/oss-fuzz/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory leak in BmffImage::brotliUncompress
2 participants