diff options
author | Mark Brown <broonie@kernel.org> | 2015-01-28 17:03:48 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-28 17:03:48 +0000 |
commit | 1874098820e8269fe88d67bc08c908134dd87102 (patch) | |
tree | 836a33047e4791d4d11b0f5e15a07de62294bb2a /lib | |
parent | 15f82fce54b86e159fe5a1d41dcdc89e12b26459 (diff) | |
parent | 5d53369ea537c7e13e151c157003c399d1d928c3 (diff) |
Merge tag 'v3.10.66' into linux-linaro-lsk
This is the 3.10.66 stable release
Diffstat (limited to 'lib')
-rw-r--r-- | lib/decompress_bunzip2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/decompress_bunzip2.c b/lib/decompress_bunzip2.c index 31c5f7675fbf..f504027d66a8 100644 --- a/lib/decompress_bunzip2.c +++ b/lib/decompress_bunzip2.c @@ -184,7 +184,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 |