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: Revert to using 'getStep' for Rgba interfaces #926

Conversation

peterhillman
Copy link
Contributor

Address https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31044

Before #902, Imf::checkOpenEXRFile's reduceTime mode would skip scanlines on images with a large number of pixels or scanlines. Instead, the 'reduceTime' flag would cause a test to fail immediately it encountered a read error. This means small files on disk generally fail quickly to prevent the tests taking too long to run.

In this case, the source file is very large but has no R,G,B or A channels, so the RgbaFile interfaces do not read any data from the file. This means no read errors are encountered by RgbaFile, so the entire file is read, which takes several minutes.

This PR restores the skipping behavior but only for RgbaInputFile API.

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

Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
@peterhillman peterhillman merged commit 660fd2e into AcademySoftwareFoundation:master Feb 18, 2021
@peterhillman peterhillman deleted the exrcheck_restore_step branch February 18, 2021 03:12
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