projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d277414
)
It's not a problem to exactly fill up the buffer with a run if the next symbol is...
author
Rob Landley
<rob@landley.net>
Sun, 6 Oct 2013 22:35:57 +0000
(17:35 -0500)
committer
Rob Landley
<rob@landley.net>
Sun, 6 Oct 2013 22:35:57 +0000
(17:35 -0500)
lib/bunzip.c
patch
|
blob
|
history
diff --git
a/lib/bunzip.c
b/lib/bunzip.c
index
fd40c14
..
23c2594
100644
(file)
--- 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;