mirror of
https://github.com/facebook/zstd.git
synced 2025-11-09 00:11:14 -05:00
Fix literals length calculation
This commit is contained in:
parent
3d26615c84
commit
022e6d81e7
@ -4587,6 +4587,7 @@ static size_t ZSTD_copySequencesToSeqStore(seqStore_t* seqStore, const ZSTD_sequ
|
|||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
/* Spanned range ends in the match section */
|
/* Spanned range ends in the match section */
|
||||||
|
litLength = seqRange->startPosInSequence > litLength ? 0 : litLength - seqRange->startPosInSequence;
|
||||||
matchLength = seqLength - litLength;
|
matchLength = seqLength - litLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user