Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: third_party/libtiff/tif_pixarlog.c

Issue 2452293002: libtiff: Fix unsigned vs signed comparison warning. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/libtiff/0009-HeapBufferOverflow-PixarLogDecode.patch ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libtiff/tif_pixarlog.c
diff --git a/third_party/libtiff/tif_pixarlog.c b/third_party/libtiff/tif_pixarlog.c
index 0674fa48d667a89b7687d3edd9addb77cc7cb184..29535d31ee1d8fb7dc6bf91086a84299148e912e 100644
--- a/third_party/libtiff/tif_pixarlog.c
+++ b/third_party/libtiff/tif_pixarlog.c
@@ -784,7 +784,7 @@ PixarLogDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s)
return (0);
}
/* Check that we will not fill more than what was allocated */
- if (sp->stream.avail_out > sp->tbuf_size)
+ if ((tmsize_t)sp->stream.avail_out > sp->tbuf_size)
{
TIFFErrorExt(tif->tif_clientdata, module, "sp->stream.avail_out > sp->tbuf_size");
return (0);
« no previous file with comments | « third_party/libtiff/0009-HeapBufferOverflow-PixarLogDecode.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698