X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdecompress_bunzip2.c;h=6a110e2759fa155ca8c4583d7136e1f1c4f0917c;hb=7d581eef3022adbe40b66f14e7e955d22e793085;hp=a7b80c1d6a0d5fba9c4078969a8916cd41ff02f7;hpb=1ca05b7fc2672ea870bd58f45dc8d36d2b980f94;p=pandora-kernel.git 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