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=af37d866c8aa1b8b61650629a53c6fab2a17e867;hpb=2f36f5e1ffcc18deee234b9085fabd2828f59ee0 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