Fix infinite loop with invalid data (fuzzer test)

This commit is contained in:
Yann Collet 2016-04-10 14:42:26 +02:00
parent c018b03e78
commit ccbba296e1
2 changed files with 4 additions and 1 deletions

View File

@ -769,7 +769,7 @@ static size_t ZSTD_decompressSequences(
{ size_t const seqHSize = ZSTD_decodeSeqHeaders(&nbSeq, DTableLL, DTableML, DTableOffb, dctx->flagRepeatTable, ip, seqSize);
if (ZSTD_isError(seqHSize)) return seqHSize;
ip += seqHSize;
dctx->flagRepeatTable = 1;
dctx->flagRepeatTable = 0;
}
/* Regen sequences */

3
programs/.gitignore vendored
View File

@ -38,6 +38,9 @@ dictionary
grillResults.txt
_*
# fuzzer
afl
# Misc files
*.bat
fileTests.sh