diff options
author | W. Felix Handte <w@felixhandte.com> | 2017-09-22 18:52:29 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2017-09-22 20:20:49 (GMT) |
commit | 77f7245ea7516d53f4ba5ecc7ee68899642c9736 (patch) | |
tree | 34d02778a6a30e03c58441c8450e4498fa8571f5 /lib | |
parent | 810e2ca27b3561e0f6bfa7a88e0fde6faf807064 (diff) | |
download | lz4-77f7245ea7516d53f4ba5ecc7ee68899642c9736.zip lz4-77f7245ea7516d53f4ba5ecc7ee68899642c9736.tar.gz lz4-77f7245ea7516d53f4ba5ecc7ee68899642c9736.tar.bz2 |
Fix Segfault When Copying Dict
dctx must have been initialized before we can copy the dictionary in.
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 3408708..166d583 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -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)) ) { |