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

better flag/type verification in deep input files #946

Merged

Conversation

peterhillman
Copy link
Contributor

Improve validation checks when using DeepTiledInputFile and DeepScanlineInputFile. DeepTiledInputFile wasn't verifying type attribute correctly on multipart files. Also DeepTiledInputFile and DeepScanlineInputFile were only checking the type attribute, and not confirming the version flags were consistent. If there's an inconsistency between the type attribute and the version flags, the version flags should be assumed to be correct.

Addresses:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31539
This file has no deep ('nonImage') or tiled flags set, but has a type attribute set to 'deeptiled', which is inconsistent. MultipartInputFile was treating the file as a scanline image, but DeepTiled was treating this as a deep tiled image. This meant exrcheck's test for large tiles were being bypassed.

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

Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
@cary-ilm cary-ilm merged commit 300ad05 into AcademySoftwareFoundation:master Mar 3, 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