Yann Collet and GitHub
e56865641e
Merge pull request #4613 from nidu-ninja/null-deref-custom-calloc
...
Fix potential NULL pointer dereference in ZSTD_customCalloc when cust…
2026-03-16 09:37:07 -07:00
Yann Collet and GitHub
c84c8fb47f
Merge pull request #4606 from jlee303/update_manual
...
Update manual/error message
2026-03-13 10:37:36 -07:00
Yann Collet and GitHub
ff25783fcb
Merge pull request #4619 from jlee303/display_option_c
...
Promote -c flag
2026-03-13 10:34:03 -07:00
Yann Collet and GitHub
155046f3ac
Merge pull request #4620 from jlee303/defineable_cflags
...
Make DISPLAY_LEVEL_DEFAULT configurable at compile time
2026-03-13 10:33:46 -07:00
Yann Collet and GitHub
ee0af93e1c
Merge pull request #4609 from Integral-Tech/memory-g-suffix
...
Accept G, GB and GiB suffixes for options
2026-03-13 10:33:24 -07:00
Jennifer Lee
e374fc76fe
fix display format
2026-03-12 11:34:43 -07:00
Jennifer Lee
3f565b731e
rever -q
2026-03-12 11:32:48 -07:00
Jennifer Lee
3041c8e539
Update #define format
2026-03-11 08:29:06 -07:00
Integral
488b3a7e37
Add tests for options with G, GB and GiB suffixes
2026-03-10 10:16:53 +08:00
Jennifer Lee
2293e9601f
init commit
2026-03-09 17:17:13 -07:00
Jennifer Lee
13ea076d3b
Update tests
2026-03-09 16:40:42 -07:00
Jennifer Lee
043426b3e2
Promote flag
2026-03-09 16:30:41 -07:00
NiDU-NINJA
3f8f9b3f89
Fix potential NULL pointer dereference in ZSTD_customCalloc when custom allocator fails
2026-03-07 08:27:15 +00:00
Integral
f1e77ab2ba
Accept G, GB and GiB suffixes for options
2026-03-07 14:49:39 +08:00
Jennifer Lee
7b04e6dd1e
Retry CI
2026-03-06 09:47:03 -08:00
Nick Terrell and Nick Terrell
d7ee3207cc
Remove LICENSE file in build/ dir
2026-03-05 19:00:23 -05:00
1bd8e55363
Update programs/zstd.1.md
...
Co-authored-by: Nick Terrell <nickrterrell@gmail.com >
2026-03-05 15:12:33 -08:00
Jennifer Lee
6a8715f8d4
update man
2026-03-04 13:29:20 -08:00
Sergey G. Brester (sebres) and Nick Terrell
6e1e545916
avoid potential RC on ctx->threadLimit, code review;
...
closes gh-4547; replaces gh-4558
2026-03-02 14:39:17 -05:00
Yann Collet and GitHub
0532fe3e8a
Merge pull request #4598 from facebook/dependabot/github_actions/cygwin/cygwin-install-action-6.1
...
Bump cygwin/cygwin-install-action from 6.0 to 6.1
2026-03-01 00:39:29 -08:00
Yann Collet and GitHub
9468cace38
Merge pull request #4597 from facebook/dependabot/github_actions/actions/upload-artifact-7.0.0
...
Bump actions/upload-artifact from 6.0.0 to 7.0.0
2026-03-01 00:38:57 -08:00
dependabot[bot] and GitHub
1c140a86a1
Bump cygwin/cygwin-install-action from 6.0 to 6.1
...
Bumps [cygwin/cygwin-install-action](https://github.com/cygwin/cygwin-install-action ) from 6.0 to 6.1.
- [Release notes](https://github.com/cygwin/cygwin-install-action/releases )
- [Commits](https://github.com/cygwin/cygwin-install-action/compare/f2009323764960f80959895c7bc3bb30210afe4d...711d29f3da23c9f4a1798e369a6f01198c13b11a )
---
updated-dependencies:
- dependency-name: cygwin/cygwin-install-action
dependency-version: '6.1'
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-03-01 05:32:44 +00:00
dependabot[bot] and GitHub
d9b10820f8
Bump actions/upload-artifact from 6.0.0 to 7.0.0
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 6.0.0 to 7.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-version: 7.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-03-01 05:32:41 +00:00
richardsonnick and Nick Terrell
bb1eedcf86
correct mmap error check
...
Update mmap error validation to check for MAP_FAILED instead of NULL.
POSIX specifies that mmap returns MAP_FAILED (-1) on failure.
2026-02-27 17:40:26 -05:00
Alexander Moch and Nick Terrell
2107c8f189
bitstream: fix BIT_readBits and BIT_reloadDStream prototypes
...
Align the declarations of BIT_readBits() and BIT_reloadDStream() in
bitstream.h with their FORCE_INLINE_TEMPLATE definitions.
The previous MEM_STATIC declarations caused an attribute mismatch
between the header and the definitions, which can lead to incorrect
compiler assumptions under certain toolchains and optimization levels.
Signed-off-by: Alexander Moch <mail@alexmoch.com >
2026-02-27 16:37:40 -05:00
Radek Zikmund and Nick Terrell
bce1ec6b07
Make explicit ptrdiff_t to int casts in divsufsort.c to avoid compiler warnings.
2026-02-27 16:32:11 -05:00
Cody and Nick Terrell
81cf153bce
fix: adjust LDM params in estimate functions to prevent SIGFPE (issue #4590 )
2026-02-27 16:14:28 -05:00
Briar Campbell and Nick Terrell
117b0edfae
Fix formatting of lz4 option in zstdcli.c
2026-02-27 16:10:41 -05:00
Briar Campbell and Nick Terrell
a90d7e7689
Fix formatting of lz4 option in README
2026-02-27 16:10:41 -05:00
Yann Collet and GitHub
1168da0e56
Merge pull request #4575 from Cyan4973/depend_monthly
...
extend dependabot period to monthly
2026-01-26 10:03:13 -08:00
Yann Collet
a380d30b20
extend dependabot period to monthly
2026-01-26 09:01:27 -08:00
Yann Collet and GitHub
4b8d87a8c3
Merge pull request #4574 from facebook/dependabot/github_actions/actions/checkout-6.0.2
...
Bump actions/checkout from 6.0.1 to 6.0.2
2026-01-26 08:57:23 -08:00
Yann Collet and GitHub
deb898b541
Merge pull request #4573 from facebook/dependabot/github_actions/actions/setup-java-5.2.0
...
Bump actions/setup-java from 5.1.0 to 5.2.0
2026-01-26 08:56:49 -08:00
dependabot[bot] and GitHub
a46bec0fba
Bump actions/checkout from 6.0.1 to 6.0.2
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/actions/checkout/releases )
- [Commits](https://github.com/actions/checkout/compare/v6.0.1...v6.0.2 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 6.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-26 05:51:10 +00:00
dependabot[bot] and GitHub
a8319c39de
Bump actions/setup-java from 5.1.0 to 5.2.0
...
Bumps [actions/setup-java](https://github.com/actions/setup-java ) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/actions/setup-java/releases )
- [Commits](https://github.com/actions/setup-java/compare/f2beeb24e141e01a676f977032f5a29d81c9e27e...be666c2fcd27ec809703dec50e508c2fdc7f6654 )
---
updated-dependencies:
- dependency-name: actions/setup-java
dependency-version: 5.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-26 05:50:49 +00:00
Yann Collet and GitHub
ae9f20ca27
Merge pull request #4554 from facebook/no_legacy
...
Remove legacy support by default
2025-12-18 16:46:12 -08:00
Yann Collet and GitHub
e00ddf63b2
Merge pull request #4555 from facebook/fix4553
...
Fix #4553
2025-12-18 16:30:23 -08:00
Yann Collet and Yann Collet
1dae4f0188
test: fix versionsTest build for old zstd versions
...
Summary:
Some old zstd versions (notably v0.6.x) have a bug in fileio.c where header includes check for `ZSTD_LEGACY_SUPPORT==1` but code usage checks for `ZSTD_LEGACY_SUPPORT>=1`. Using value 5 causes compilation failure because headers aren't included but the code tries to use legacy functions.
Changing to `ZSTD_LEGACY_SUPPORT=1` for old version builds fixes the compilation while still enabling legacy format support.
Test Plan:
Run `make versionsTest` or `python3 tests/test-zstd-versions.py` to verify all old versions compile and cross-version decompression works correctly.
2025-12-18 16:13:53 -08:00
Yann Collet
3a3c506b51
Fix #4553
...
This is a bug in the streaming implementation of the v0.5 decoder.
The bug has always been there.
It requires an uncommon block configuration, which wasn't tested at the time.
v0.5 is deprecated now,
latest version to produce such format is v0.5.1 from February 2016.
It was superceded in April 2016.
So it's both short lived and very old.
Another PR will remove support of this format,
but it will still be possible to explicitely request this support on demand,
so better fix the issue.
2025-12-18 15:52:11 -08:00
Yann Collet and Yann Collet
a87d0cc476
test: enable legacy support in version compatibility test
...
Summary:
The version compatibility test needs to decode legacy frames (v0.5.x - v0.7.x) to verify cross-version interoperability. Since legacy support is now disabled by default (v1.6.0), head must be built with ZSTD_LEGACY_SUPPORT=5 for this test.
Test Plan:
Run `python3 tests/test-zstd-versions.py` to verify cross-version compatibility testing works correctly.
2025-12-18 14:42:41 -08:00
Yann Collet
8ba2f20a90
test: update libzstd_builds.sh for disabled legacy default
...
Summary:
Updates the library build tests to reflect that legacy format support is now disabled by default. Also adds a new test case to verify that legacy support can still be explicitly enabled via ZSTD_LEGACY_SUPPORT=5.
Test Plan:
Run `bash tests/libzstd_builds.sh` on a Linux environment.
2025-12-18 13:39:28 -08:00
Yann Collet and Yann Collet
f818f97be6
build: set ZSTD_LEGACY_SUPPORT=0 in remaining build systems
...
Summary:
Completes the transition to disabled legacy support by default across all build systems. This follows up on the previous Makefile and CMake changes to ensure consistent default behavior regardless of the build system used.
Updated build configurations: Meson, tests/Makefile, Visual Studio 2008/2010 projects, and BUCK.
Test Plan:
Verified changes compile correctly via `make lib-release`. Build system configurations have been updated consistently across all platforms.
2025-12-18 13:25:47 -08:00
Yann Collet
6c3e805e50
doc: legacy support is now disabled by default
2025-12-18 13:19:11 -08:00
Yann Collet
073c7fb6ea
update dev version number to v1.6.0
...
to reflect the relatively big scope change by removing support of legacy formats.
2025-12-18 13:13:56 -08:00
Yann Collet
b79e86291b
[cmake] disable legacy support by default
...
can still be explicitly enabled
2025-12-18 13:11:37 -08:00
Yann Collet
38cce02684
Makefile: remove support of legacy formats by default
...
can still be changed manually by setting `ZSTD_LEGACY_SUPPORT` to a different value
2025-12-18 12:59:14 -08:00
Yann Collet and GitHub
ebc93b0c91
Merge pull request #4545 from facebook/cirrusci_bsd_fix
...
[ci] update freebsd image
2025-12-18 09:53:59 -08:00
Yann Collet
85c5fa09fd
changed to freebsd 15
...
since the image 16 does not seem to work
2025-12-18 09:40:47 -08:00
Yann Collet and GitHub
af850cd44e
Merge pull request #4551 from facebook/dependabot/github_actions/actions/upload-artifact-6.0.0
...
Bump actions/upload-artifact from 5.0.0 to 6.0.0
2025-12-18 09:39:37 -08:00
Yann Collet and GitHub
5b51447734
Merge pull request #4552 from facebook/dependabot/github_actions/actions/cache-5
...
Bump actions/cache from 4 to 5
2025-12-16 07:24:01 -08:00