Merge pull request #402 from felixhandte/fix-dict-segfault

Fix dict segfault
This commit is contained in:
Yann Collet 2017-09-23 14:02:22 -07:00 committed by GitHub
commit 2a9af21d62

View File

@ -1616,6 +1616,7 @@ size_t LZ4F_decompress(LZ4F_dctx* dctx,
if ( (dctx->frameInfo.blockMode==LZ4F_blockLinked)
&& (dctx->dict != dctx->tmpOutBuffer)
&& (dctx->dStage != dstage_getFrameHeader)
&& (dctx->dStage != dstage_storeFrameHeader)
&& (!decompressOptionsPtr->stableDst)
&& ((unsigned)(dctx->dStage-1) < (unsigned)(dstage_getSuffix-1)) )
{