reduced assertion strength

one limit case can apparently be generated during fuzzer tests
This commit is contained in:
Yann Collet 2018-11-08 12:57:34 -08:00
parent f40c6b4395
commit 20fb9e7f36

View File

@ -1037,7 +1037,7 @@ ZSTD_decompressSequencesLong_body(
seqState.prefixStart = prefixStart;
seqState.pos = (size_t)(op-prefixStart);
seqState.dictEnd = dictEnd;
assert(iend > ip);
assert(iend >= ip);
CHECK_E(BIT_initDStream(&seqState.DStream, ip, iend-ip), corruption_detected);
ZSTD_initFseState(&seqState.stateLL, &seqState.DStream, dctx->LLTptr);
ZSTD_initFseState(&seqState.stateOffb, &seqState.DStream, dctx->OFTptr);