-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly open and work with large TIFF files.
Any file between 2^31 and 2^32 bytes shouldn't have its size displayed as a negative number. Viewing more than 32768 pixels in each dimension is only a matter of using 64bit arithmetic when calculating allocation sizes and pointers into that memory. Multiplying is always suspicious. While there, make the error messages clearer about what went wrong. Signed-off-by: Klaus Ethgen <Klaus@Ethgen.de>
- Loading branch information
Showing
3 changed files
with
18 additions
and
13 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
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