fixed bug in legacy decoder v0.2, reported by Maciej Adamczyk

dev
Yann Collet 2015-11-26 14:12:23 +01:00
parent 62e1b5f5b3
commit c2ce890ac2
1 changed files with 1 additions and 0 deletions

View File

@ -3155,6 +3155,7 @@ static size_t ZSTD_decodeLiteralsBlock(void* ctx,
{
if (litSize > srcSize-3) return ERROR(corruption_detected);
memcpy(dctx->litBuffer, istart, litSize);
dctx->litPtr = dctx->litBuffer;
dctx->litBufSize = BLOCKSIZE;
dctx->litSize = litSize;
return litSize+3;