diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2019-05-31 00:28:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-31 00:28:59 (GMT) |
commit | b77c9c062dcffedd25ccc18a8b59330a270c8677 (patch) | |
tree | 7a90c235d6d289896d7f58cdb44a2d5b0f38230d /lib | |
parent | ab2248b90a86c5af0b64f920810d519bd237c5c4 (diff) | |
parent | 2be2fe43a8460521c90edcfbbb98517933429f4d (diff) | |
download | lz4-b77c9c062dcffedd25ccc18a8b59330a270c8677.zip lz4-b77c9c062dcffedd25ccc18a8b59330a270c8677.tar.gz lz4-b77c9c062dcffedd25ccc18a8b59330a270c8677.tar.bz2 |
Merge pull request #714 from dreambottle/fix-lz4f-input-buf-use
Fix src temporary buffer use in lz4frame
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c index 95b8b8e..cc7f2d5 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -1494,7 +1494,7 @@ size_t LZ4F_decompress(LZ4F_dctx* dctx, /* next block is a compressed block */ dctx->tmpInTarget = nextCBlockSize + crcSize; dctx->dStage = dstage_getCBlock; - if (dstPtr==dstEnd) { + if (dstPtr==dstEnd || srcPtr==srcEnd) { nextSrcSizeHint = BHSize + nextCBlockSize + crcSize; doAnotherStage = 0; } |