]> git.ipfire.org Git - thirdparty/zstd.git/commit
ensure adjustCParams adjust hLog and cLog even without srcSize
authorYann Collet <cyan@fb.com>
Thu, 28 Sep 2017 08:25:40 +0000 (01:25 -0700)
committerYann Collet <cyan@fb.com>
Thu, 28 Sep 2017 08:25:40 +0000 (01:25 -0700)
commit9b5b47ac930442b24c0fb123274b5cc7a216d478
tree7c6bec9848dc8d6ca46f2b009baace2f19aab628
parentaa800c4793a4bc044df53614ca652c96d59e1078
ensure adjustCParams adjust hLog and cLog even without srcSize

It would previously exit when srcSize is unknown.
But in the case of custom parameters,
hLog and cLog can still be too large in comparison with windowLog.

Reduces maximum memory allocated during zstreamtest --newapi
lib/compress/zstd_compress.c
lib/zstd.h
tests/zstreamtest.c