gzip_decompress: ISIZE is mod 2^32 of the actual size

This commit is contained in:
Eric Biggers 2016-01-23 09:41:52 -06:00
parent 7be1effacc
commit a8ace6e46a

View File

@ -100,7 +100,7 @@ gzip_decompress(struct deflate_decompressor *d,
in_next += 4;
/* ISIZE */
if (actual_out_nbytes != get_unaligned_le32(in_next))
if ((u32)actual_out_nbytes != get_unaligned_le32(in_next))
return false;
return true;