]> git.ipfire.org Git - thirdparty/zstd.git/commit
zstdmt : fixed very large window sizes
authorYann Collet <cyan@fb.com>
Wed, 17 Jan 2018 20:39:58 +0000 (12:39 -0800)
committerYann Collet <cyan@fb.com>
Wed, 17 Jan 2018 20:39:58 +0000 (12:39 -0800)
commitd14cc881b0f039d641cd3a7df33bad897320e654
treede2fb7ecf403e8f078bd26263b21677a68728dbb
parent58dd7de640e630f19d64a10fbecb52f2628e9750
zstdmt : fixed very large window sizes

would create too large buffers,
since default job size == window size * 4.

This would crash on 32-bit systems.

Also : jobSize being a 32-bit unsigned, it cannot be >= 4 GB,
so the formula was failing for large window sizes >= 1 GB.
Fixed now : max job Size is 2 GB, whatever the window size.
lib/compress/zstdmt_compress.c