diff options
Diffstat (limited to 'tools/tiffcrop.c')
-rw-r--r-- | tools/tiffcrop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tiffcrop.c b/tools/tiffcrop.c index 519871ec..d7ad5ca8 100644 --- a/tools/tiffcrop.c +++ b/tools/tiffcrop.c @@ -9676,7 +9676,7 @@ static int rotateImage(uint16_t rotation, struct image_data *image, "Integer overflow when calculating buffer size."); return (-1); } - buffsize = (rowsize + 1) * length; + buffsize = ((tmsize_t)rowsize + 1) * length; } bytes_per_sample = (bps + 7) / 8; |