diff options
author | Even Rouault <even.rouault@spatialys.com> | 2023-02-06 20:48:42 +0000 |
---|---|---|
committer | Even Rouault <even.rouault@spatialys.com> | 2023-02-06 20:48:42 +0000 |
commit | c8e1289deff3fa60ba833ccec6c030934b02c281 (patch) | |
tree | a52b2b5a864056836adb9f326191ca98770d202e | |
parent | afaabc3e50d4e5d80a94143f7e3c997e7e410f68 (diff) | |
parent | 3f375931757b912ebbc6ebc57c1796728adaed1f (diff) | |
download | libtiff-git-c8e1289deff3fa60ba833ccec6c030934b02c281.tar.gz |
Merge branch 'tiffcrop_fix_CoverityScan_line_9676' into 'master'
Fix Coverity Scan issue CID 1520761: Integer handling issues...
See merge request libtiff/libtiff!469
-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; |