commit
b18b6e53e1
@ -1474,7 +1474,7 @@ size_t LZ4F_decompress(LZ4F_dctx* dctx,
|
|||||||
}
|
}
|
||||||
dctx->tmpInTarget -= sizeToCopy; /* need to copy more */
|
dctx->tmpInTarget -= sizeToCopy; /* need to copy more */
|
||||||
nextSrcSizeHint = dctx->tmpInTarget +
|
nextSrcSizeHint = dctx->tmpInTarget +
|
||||||
+ dctx->frameInfo.contentChecksumFlag * 4 /* block checksum */
|
+ dctx->frameInfo.blockChecksumFlag * 4 /* size for block checksum */
|
||||||
+ BHSize /* next header size */;
|
+ BHSize /* next header size */;
|
||||||
doAnotherStage = 0;
|
doAnotherStage = 0;
|
||||||
break;
|
break;
|
||||||
@ -1525,7 +1525,9 @@ size_t LZ4F_decompress(LZ4F_dctx* dctx,
|
|||||||
dctx->tmpInSize += sizeToCopy;
|
dctx->tmpInSize += sizeToCopy;
|
||||||
srcPtr += sizeToCopy;
|
srcPtr += sizeToCopy;
|
||||||
if (dctx->tmpInSize < dctx->tmpInTarget) { /* need more input */
|
if (dctx->tmpInSize < dctx->tmpInTarget) { /* need more input */
|
||||||
nextSrcSizeHint = (dctx->tmpInTarget - dctx->tmpInSize) + BHSize;
|
nextSrcSizeHint = (dctx->tmpInTarget - dctx->tmpInSize)
|
||||||
|
+ dctx->frameInfo.blockChecksumFlag * 4 /* size for block checksum */
|
||||||
|
+ BHSize /* next header size */;
|
||||||
doAnotherStage = 0;
|
doAnotherStage = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user