fixed a small error in decodeCorpus

a compressed block must be strictly smaller than its decompressed size.
This commit is contained in:
Yann Collet
2017-10-07 15:19:52 -07:00
parent 4252621e26
commit 7f6a783862
4 changed files with 73 additions and 100 deletions
+1 -1
View File
@@ -1416,7 +1416,7 @@ static size_t ZSTD_decompressBlock_internal(ZSTD_DCtx* dctx,
/* windowSize could be any value at this point, since it is only validated
* in the streaming API.
*/
DEBUGLOG(5, "ZSTD_decompressBlock_internal");
DEBUGLOG(5, "ZSTD_decompressBlock_internal (size : %u)", (U32)srcSize);
if (srcSize >= ZSTD_BLOCKSIZE_MAX) return ERROR(srcSize_wrong);