diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2014-09-21 08:56:21 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2014-09-21 08:56:21 (GMT) |
commit | eeb9011467d4064eca754bd32e629e88fa5ec8f3 (patch) | |
tree | 1a2274334233a0db5df0a0290ed4a790baa7d567 /lz4.c | |
parent | d71b9e25b729e92871cd6a9791170e334d5199d1 (diff) | |
download | lz4-eeb9011467d4064eca754bd32e629e88fa5ec8f3.zip lz4-eeb9011467d4064eca754bd32e629e88fa5ec8f3.tar.gz lz4-eeb9011467d4064eca754bd32e629e88fa5ec8f3.tar.bz2 |
lz4frame : support stableDst option
Multiple bugfixes within lz4frame decompression
Small decompression speed improvements
Improved fuzzer test, with more thorough and complex tests
Diffstat (limited to 'lz4.c')
-rw-r--r-- | lz4.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1155,7 +1155,9 @@ Advanced decoding functions : FORCE_INLINE int LZ4_decompress_usingDict_generic(const char* source, char* dest, int compressedSize, int maxOutputSize, int safe, const char* dictStart, int dictSize) { - if ((dictStart+dictSize == source) && (dictSize >= (int)(64 KB - 1))) + if (dictSize==0) + return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, safe, full, 0, noDict, NULL, 64 KB); + if ((dictStart+dictSize == dest) && (dictSize >= (int)(64 KB - 1))) return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, safe, full, 0, withPrefix64k, NULL, 64 KB); return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, safe, full, 0, usingExtDict, dictStart, dictSize); } |