summaryrefslogtreecommitdiff
path: root/libtiff/tif_jpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtiff/tif_jpeg.c')
-rw-r--r--libtiff/tif_jpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtiff/tif_jpeg.c b/libtiff/tif_jpeg.c
index af3896c5..eed13574 100644
--- a/libtiff/tif_jpeg.c
+++ b/libtiff/tif_jpeg.c
@@ -1,4 +1,4 @@
-/* $Id: tif_jpeg.c,v 1.132 2017-08-29 07:30:07 erouault Exp $ */
+/* $Id: tif_jpeg.c,v 1.133 2017-08-29 08:08:10 erouault Exp $ */
/*
* Copyright (c) 1994-1997 Sam Leffler
@@ -1511,7 +1511,7 @@ JPEGDecodeRaw(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s)
/* For last strip, limit number of rows to its truncated height */
/* even if the codestream height is larger (which is not compliant, */
/* but that we tolerate) */
- if( nrows > td->td_imagelength - tif->tif_row && !isTiled(tif) )
+ if( (uint32)nrows > td->td_imagelength - tif->tif_row && !isTiled(tif) )
nrows = td->td_imagelength - tif->tif_row;
/* data is expected to be read in multiples of a scanline */