diff options
author | inikep <inikep@gmail.com> | 2016-09-06 08:36:16 (GMT) |
---|---|---|
committer | inikep <inikep@gmail.com> | 2016-09-06 08:36:16 (GMT) |
commit | 3eb143fffa0a557726658d8164e76239dea9245c (patch) | |
tree | c371e541d094d1f12a4faa2a050d0cc339b2907c /lib | |
parent | 92ee3e0ea982f7c8e33a6bff1c916d07ccce1f65 (diff) | |
download | lz4-3eb143fffa0a557726658d8164e76239dea9245c.zip lz4-3eb143fffa0a557726658d8164e76239dea9245c.tar.gz lz4-3eb143fffa0a557726658d8164e76239dea9245c.tar.bz2 |
fix bug #232 at https://github.com/Cyan4973/lz4/issues/232
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4frame.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c index 1dc2bca..d6a68b6 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -711,6 +711,7 @@ size_t LZ4F_compressEnd(LZ4F_compressionContext_t compressionContext, void* dstB } cctxPtr->cStage = 0; /* state is now re-usable (with identical preferences) */ + cctxPtr->maxBufferSize = 0; /* reuse HC context */ if (cctxPtr->prefs.frameInfo.contentSize) { if (cctxPtr->prefs.frameInfo.contentSize != cctxPtr->totalInSize) |