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: account for size of pixels when estimating memory #966

Conversation

peterhillman
Copy link
Contributor

Address https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32067
Update Imf::checkOpenEXRFile 'reduceMemory' mode to account for size and number of channels, as well as scanline/tile dimensions, when estimating memory consumption. (Example image claims to have 346 channels so RleCompressor allocated a large amount of memory to decode the file)

Signed-off-by: Peter Hillman [email protected]

Copy link
Contributor

@kdt3rd kdt3rd left a comment

Choose a reason for hiding this comment

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

Not sure whether we want this in prior to 3.0 or not, but looks good to me either way

@cary-ilm
Copy link
Member

cary-ilm commented Mar 15, 2021 via email

@cary-ilm
Copy link
Member

OK to merge this to master now that RB-3.0 is in place.

@cary-ilm cary-ilm merged commit cf498e0 into AcademySoftwareFoundation:master Mar 17, 2021
cary-ilm pushed a commit to cary-ilm/openexr that referenced this pull request Mar 20, 2021
cary-ilm pushed a commit that referenced this pull request Mar 28, 2021
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.

3 participants