You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Source code lines
the bug probably in function ZSTD_adjustCParams_internal() in zstd_compress.c:
const U64 maxWindowResize = 1ULL << (ZSTD_WINDOWLOG_MAX-1);
...
/* resize windowLog if input is small enough, to use less memory */
if ( (srcSize < maxWindowResize)
and fixed version probably must use <= instead of <:
if ( (srcSize <= maxWindowResize)
The text was updated successfully, but these errors were encountered:
zstd 1.5.2 doesn't reduce the Windows Size from 2 GiB to 1 GiB, if file size is exactly 1 GiB.
To Reproduce
result:
Expected behavior
Source code lines
the bug probably in function
ZSTD_adjustCParams_internal()
inzstd_compress.c
:and fixed version probably must use
<=
instead of<
:The text was updated successfully, but these errors were encountered: