diff options
author | erouault <erouault> | 2017-08-29 08:08:10 +0000 |
---|---|---|
committer | erouault <erouault> | 2017-08-29 08:08:10 +0000 |
commit | 62590f8e8cc7ce7010d4ed6395beee77f083dd0a (patch) | |
tree | 53ec34e5888d5091727ecb10f61ddb622f25e1cc | |
parent | f9f2a39e2ad040fb17078c6e6a2240ae39789848 (diff) | |
download | libtiff-62590f8e8cc7ce7010d4ed6395beee77f083dd0a.tar.gz |
Fix signed vs unsigned comparison
-rw-r--r-- | libtiff/tif_jpeg.c | 4 |
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 */ |