Fix literals length calculation

dev
senhuang42 2020-11-10 13:48:02 -05:00
parent 3d26615c84
commit 022e6d81e7
1 changed files with 1 additions and 0 deletions

View File

@ -4587,6 +4587,7 @@ static size_t ZSTD_copySequencesToSeqStore(seqStore_t* seqStore, const ZSTD_sequ
break;
} else {
/* Spanned range ends in the match section */
litLength = seqRange->startPosInSequence > litLength ? 0 : litLength - seqRange->startPosInSequence;
matchLength = seqLength - litLength;
}