fixed msan test
a pointer calculation was wrong in a corner case
This commit is contained in:
parent
658d6b8588
commit
b17fb488b0
@ -122,7 +122,7 @@ static void ZSTD_insertDUBT1(ZSTD_CCtx* zc,
|
|||||||
if ( (!extDict)
|
if ( (!extDict)
|
||||||
|| (matchIndex+matchLength >= dictLimit) /* both in current segment*/
|
|| (matchIndex+matchLength >= dictLimit) /* both in current segment*/
|
||||||
|| (current < dictLimit) /* both in extDict */) {
|
|| (current < dictLimit) /* both in extDict */) {
|
||||||
const BYTE* const mBase = !extDict || (matchIndex >= dictLimit) ? base : dictBase;
|
const BYTE* const mBase = !extDict || ((matchIndex+matchLength) >= dictLimit) ? base : dictBase;
|
||||||
assert( (matchIndex+matchLength >= dictLimit) /* might be wrong if extDict is incorrectly set to 0 */
|
assert( (matchIndex+matchLength >= dictLimit) /* might be wrong if extDict is incorrectly set to 0 */
|
||||||
|| (current < dictLimit) );
|
|| (current < dictLimit) );
|
||||||
match = mBase + matchIndex;
|
match = mBase + matchIndex;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user