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

exrcheck: make readDeepTile allocate memory for just one tile #991

Conversation

peterhillman
Copy link
Contributor

Address https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32620
Imf::checkOpenEXRFile's readDeepTile was allocating memory for the entire image, but only reading a single tile into it at once. This was causing excessive memory allocation, but still worked as long as the dataWindow was not offset, and the image size was bigger than the tile size.

Signed-off-by: Peter Hillman peterh@wetafx.co.nz

Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
Copy link
Member

@cary-ilm cary-ilm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cary-ilm cary-ilm merged commit b65919a into AcademySoftwareFoundation:master Mar 31, 2021
cary-ilm pushed a commit to cary-ilm/openexr that referenced this pull request May 13, 2021
cary-ilm pushed a commit to cary-ilm/openexr that referenced this pull request May 17, 2021
…ySoftwareFoundation#991)

Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
Signed-off-by: Cary Phillips <cary@ilm.com>
cary-ilm pushed a commit that referenced this pull request May 17, 2021
Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
Signed-off-by: Cary Phillips <cary@ilm.com>
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.

2 participants