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 of memory error due to unchecked allocation size in PngChunk::parseChunkContent() #845

Closed
kevinbackhouse opened this issue May 13, 2019 · 2 comments
Labels

Comments

@kevinbackhouse
Copy link
Collaborator

kevinbackhouse commented May 13, 2019

The attached file causes a std::bad_alloc exception in exiv2.

issue_845_poc

The bug is that there is no bounds check on the value of length at pngchunk_int.cpp:669.

Reproducible on the 0.27-maintenance branch (f4a37c6):

exiv2 issue_845_poc.png
@kevinbackhouse
Copy link
Collaborator Author

This bug is also reproducible in v0.25 and v0.26, so I have created #875 and #876 to back-port the fix.

@kevinbackhouse
Copy link
Collaborator Author

This has been assigned CVE-2019-13112.

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

No branches or pull requests

2 participants