forked from AcademySoftwareFoundation/OpenImageIO
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IFF output safety (AcademySoftwareFoundation#3676)
* Maya IFF documentation says IFF file has max resolution of 8192, and our implementation only allows writing RGB and RGBA, so check these limits when an IFF file is opened for output. * Make sure scratch space allocates enough for tile padding. * Check for non-zero image origin coordinates (which are not allowed in IFF files). * Change some 16-bit loop variables to uint32_t to avoid possible overflow. Fixes TALOS-2022-1654, TALOS-2022-1655, TALOS-2022-1656
- Loading branch information
Showing
2 changed files
with
60 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters