From a8ace6e46a7e0e6ef592113338ffa1a535bd1ea2 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 23 Jan 2016 09:41:52 -0600 Subject: [PATCH] gzip_decompress: ISIZE is mod 2^32 of the actual size --- src/gzip_decompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gzip_decompress.c b/src/gzip_decompress.c index a567246..5d63350 100644 --- a/src/gzip_decompress.c +++ b/src/gzip_decompress.c @@ -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;