aboutsummaryrefslogtreecommitdiffstats
path: root/decompress.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2019-06-28 01:54:07 +0000
committerXin LI <delphij@FreeBSD.org>2019-06-28 01:54:07 +0000
commit7897e22279d3ecd2cadda971da4a5bf96bbee785 (patch)
tree8f960efa25d42e93c3414b72f412571f552a762a /decompress.c
parentdd642931791555836f950996f6ff2c854f882dc6 (diff)
downloadsrc-7897e22279d3ecd2cadda971da4a5bf96bbee785.tar.gz
src-7897e22279d3ecd2cadda971da4a5bf96bbee785.zip
Vendor import bzip2 -- upgrade to version 1.0.7.vendor/bzip2/1.0.7
Notes
Notes: svn path=/vendor/bzip2/dist/; revision=349496 svn path=/vendor/bzip2/1.0.7/; revision=349497; tag=vendor/bzip2/1.0.7
Diffstat (limited to 'decompress.c')
-rw-r--r--decompress.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/decompress.c b/decompress.c
index 311f5668f9ae..20ce4936cdfb 100644
--- a/decompress.c
+++ b/decompress.c
@@ -8,8 +8,8 @@
This file is part of bzip2/libbzip2, a program and library for
lossless, block-sorting data compression.
- bzip2/libbzip2 version 1.0.6 of 6 September 2010
- Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
+ bzip2/libbzip2 version 1.0.7 of 27 June 2019
+ Copyright (C) 1996-2010 Julian Seward <jseward@acm.org>
Please read the WARNING, DISCLAIMER and PATENTS sections in the
README file.
@@ -285,9 +285,9 @@ Int32 BZ2_decompress ( DState* s )
/*--- Now the selectors ---*/
GET_BITS(BZ_X_SELECTOR_1, nGroups, 3);
- if (nGroups < 2 || nGroups > 6) RETURN(BZ_DATA_ERROR);
+ if (nGroups < 2 || nGroups > BZ_N_GROUPS) RETURN(BZ_DATA_ERROR);
GET_BITS(BZ_X_SELECTOR_2, nSelectors, 15);
- if (nSelectors < 1) RETURN(BZ_DATA_ERROR);
+ if (nSelectors < 1 || nSelectors > BZ_MAX_SELECTORS) RETURN(BZ_DATA_ERROR);
for (i = 0; i < nSelectors; i++) {
j = 0;
while (True) {