diff options
author | Bill Rassieur <rassb@google.com> | 2019-04-02 16:52:18 +0000 |
---|---|---|
committer | Bill Rassieur <rassb@google.com> | 2019-04-02 16:52:18 +0000 |
commit | e85c94e4ab7d2cc152594d3a27692627bb30ef2a (patch) | |
tree | 752e8abb4031b24d3656e3fec6469439d6c17671 | |
parent | 88f685a100641a70175e0bae22e112212f16dfd8 (diff) | |
parent | d1dc11d2ce9a4b6763f5434e0ed8fb57088a7fb4 (diff) | |
download | bzip2-e85c94e4ab7d2cc152594d3a27692627bb30ef2a.tar.gz |
Merge master@5428150 into git_qt-dev.
Change-Id: Icf415dcb913b8ba959f6056dc190951b06a4923b
BUG: 129345239
-rw-r--r-- | decompress.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/decompress.c b/decompress.c index 311f566..391552d 100644 --- a/decompress.c +++ b/decompress.c @@ -288,6 +288,7 @@ Int32 BZ2_decompress ( DState* s ) if (nGroups < 2 || nGroups > 6) RETURN(BZ_DATA_ERROR); GET_BITS(BZ_X_SELECTOR_2, nSelectors, 15); if (nSelectors < 1) RETURN(BZ_DATA_ERROR); + if (nSelectors > BZ_MAX_SELECTORS) RETURN(BZ_DATA_ERROR); for (i = 0; i < nSelectors; i++) { j = 0; while (True) { |