commit | 022e6d81e73261fbcab63337105b261fad721442 | [log] [tgz] |
---|---|---|
author | senhuang42 <senhuang96@fb.com> | Tue Nov 10 13:48:02 2020 -0500 |
committer | senhuang42 <senhuang96@fb.com> | Mon Nov 16 10:49:17 2020 -0500 |
tree | 4e6384cd301270ae18e4d360011372ce5dce8a02 | |
parent | 3d26615c844b069c3e2165f6467b3a31d224533d [diff] |
Fix literals length calculation
diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index a0b6b42..c19b243 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c
@@ -4587,6 +4587,7 @@ break; } else { /* Spanned range ends in the match section */ + litLength = seqRange->startPosInSequence > litLength ? 0 : litLength - seqRange->startPosInSequence; matchLength = seqLength - litLength; }