Skip to content

Commit 69e0076

Browse files
jjpprrrrcyberknight777
authored andcommitted
lib/lz4: fix token in slow decompress loop
Looks like Chenxi Mao missed a line in the non-fast-decode path when doing the backport. ref: https://github.com/lz4/lz4/blob/v1.9.3/lib/lz4.c#L1930 Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
1 parent 57dba34 commit 69e0076

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/lz4/lz4_decompress.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ static FORCE_INLINE int LZ4_decompress_generic(
398398
#endif
399399
/* Main Loop : decode sequences */
400400
while (1) {
401+
token = *ip++;
401402
length = token >> ML_BITS;
402403

403404
/* ip < iend before the increment */

0 commit comments

Comments
 (0)