Skip to content
Permalink
Browse files Browse the repository at this point in the history
improved error reporting for 0-width in TGA loading; this fixes #66
  • Loading branch information
Peter Szabo committed Jul 18, 2019
1 parent 93d5ced commit b953f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion input-tga.ci
Expand Up @@ -452,7 +452,7 @@ ReadImage (FILE *fp,
pelbytes = 3;

wh = (unsigned)width * height;
if (wh / width != height) {
if (width != 0 && wh / width != height) {
idl_error:
FATALP("TGA: image dimensions too large");
}
Expand Down

0 comments on commit b953f63

Please sign in to comment.