diff options
Diffstat (limited to 'lib/bunzip.c')
-rw-r--r-- | lib/bunzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bunzip.c b/lib/bunzip.c index fd40c147..23c25940 100644 --- a/lib/bunzip.c +++ b/lib/bunzip.c @@ -378,7 +378,7 @@ static int read_huffman_data(struct bunzip_data *bd, struct bwdata *bw) literal used is the one at the head of the mtfSymbol array.) */ if (runPos) { runPos = 0; - if (dbufCount+hh >= bd->dbufSize) return RETVAL_DATA_ERROR; + if (dbufCount+hh > bd->dbufSize) return RETVAL_DATA_ERROR; uc = bd->symToByte[bd->mtfSymbol[0]]; byteCount[uc] += hh; |