mirror of
https://github.com/facebook/zstd.git
synced 2025-11-30 11:21:33 +03:00
ZSTD_compress() and friends would treat an empty input as an unknown size when selecting parameters. Thus, they would drastically overallocate the context. Tell ZSTD_getParams() that the source size is 1 when it is empty.
75 KiB
75 KiB