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

jp2image.cpp: check size before allocation to avoid out-of-memory errors #1814

Merged
merged 3 commits into from
Aug 1, 2021

Conversation

kevinbackhouse
Copy link
Collaborator

Fixes: #1812

Note: I had to update some of our tests, because several of our older test files are triggering the new size check. (None of the test files that trigger the new check are valid images.)

@kevinbackhouse kevinbackhouse linked an issue Jul 30, 2021 that may be closed by this pull request
@kevinbackhouse kevinbackhouse added bug forward-to-main Forward changes in a 0.28.x PR to main with Mergify labels Jul 30, 2021
@kevinbackhouse kevinbackhouse added this to the v0.27.5 milestone Jul 30, 2021
@kevinbackhouse kevinbackhouse merged commit f8c36de into Exiv2:0.27-maintenance Aug 1, 2021
kevinbackhouse added a commit that referenced this pull request Aug 2, 2021
jp2image.cpp: check size before allocation to avoid out-of-memory errors (backport #1814)
@clanmills clanmills mentioned this pull request Aug 9, 2021
@kevinbackhouse kevinbackhouse deleted the FixIssue1812 branch August 11, 2021 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug forward-to-main Forward changes in a 0.28.x PR to main with Mergify
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4GB allocation in jp2image.cpp
2 participants