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