X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=lib%2Fdecompress_bunzip2.c;h=6a110e2759fa155ca8c4583d7136e1f1c4f0917c;hp=a7b80c1d6a0d5fba9c4078969a8916cd41ff02f7;hb=fad79858d2f2d8d18c3a1a4d1f4bb87a0c49b1d1;hpb=0e5b88cd9975dca6c191cc9bd11f233fac4ca882 diff --git a/lib/decompress_bunzip2.c b/lib/decompress_bunzip2.c index a7b80c1d6a0d..6a110e2759fa 100644 --- a/lib/decompress_bunzip2.c +++ b/lib/decompress_bunzip2.c @@ -185,7 +185,7 @@ static int INIT get_next_block(struct bunzip_data *bd) if (get_bits(bd, 1)) return RETVAL_OBSOLETE_INPUT; origPtr = get_bits(bd, 24); - if (origPtr > dbufSize) + if (origPtr >= dbufSize) return RETVAL_DATA_ERROR; /* mapping table: if some byte values are never used (encoding things like ascii text), the compression code removes the gaps to have fewer