summaryrefslogtreecommitdiffstats
path: root/lz4frame.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-09-22 01:59:42 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2014-09-22 01:59:42 (GMT)
commit6e1049872ae2606cfb3820464c850c694275ae59 (patch)
tree9aa742ad19a0cebceba94a403ec8dd09e974b6e6 /lz4frame.c
parent0e6151b1379ed8e60c1ca345497c86f88e3967f6 (diff)
downloadlz4-6e1049872ae2606cfb3820464c850c694275ae59.zip
lz4-6e1049872ae2606cfb3820464c850c694275ae59.tar.gz
lz4-6e1049872ae2606cfb3820464c850c694275ae59.tar.bz2
LZ4F_compressFrame : fix potential crash on selecting custom preferences
frame fuzzer tests : new random tests using LZ4F_compressFrame
Diffstat (limited to 'lz4frame.c')
-rw-r--r--lz4frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lz4frame.c b/lz4frame.c
index 9209191..47ad655 100644
--- a/lz4frame.c
+++ b/lz4frame.c
@@ -262,7 +262,7 @@ size_t LZ4F_compressFrame(void* dstBuffer, size_t dstMaxSize, const void* srcBuf
cctxI.version = LZ4F_VERSION;
- cctxI.maxBufferSize = 64 KB; /* mess with real buffer size to prevent allocation; works because autoflush==1 & stableSrc==1 */
+ cctxI.maxBufferSize = 5 MB; /* mess with real buffer size to prevent allocation; works because autoflush==1 & stableSrc==1 */
if (preferencesPtr!=NULL) prefs = *preferencesPtr;
{