Commit Graph
11436 Commits
Author SHA1 Message Date
Jennifer Lee 6a8715f8d4 update man 2026-03-04 13:29:20 -08:00
Sergey G. Brester (sebres)andNick 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 ColletandGitHub 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 ColletandGitHub 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]andGitHub 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]andGitHub 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
richardsonnickandNick 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 MochandNick 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 ZikmundandNick Terrell bce1ec6b07 Make explicit ptrdiff_t to int casts in divsufsort.c to avoid compiler warnings. 2026-02-27 16:32:11 -05:00
CodyandNick Terrell 81cf153bce fix: adjust LDM params in estimate functions to prevent SIGFPE (issue #4590) 2026-02-27 16:14:28 -05:00
Briar CampbellandNick Terrell 117b0edfae Fix formatting of lz4 option in zstdcli.c 2026-02-27 16:10:41 -05:00
Briar CampbellandNick Terrell a90d7e7689 Fix formatting of lz4 option in README 2026-02-27 16:10:41 -05:00
Yann ColletandGitHub 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 ColletandGitHub 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 ColletandGitHub 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]andGitHub 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]andGitHub 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 ColletandGitHub ae9f20ca27 Merge pull request #4554 from facebook/no_legacy
Remove legacy support by default
2025-12-18 16:46:12 -08:00
Yann ColletandGitHub e00ddf63b2 Merge pull request #4555 from facebook/fix4553
Fix #4553
2025-12-18 16:30:23 -08:00
Yann ColletandYann 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 ColletandYann 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 ColletandYann 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 ColletandGitHub 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 ColletandGitHub 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 ColletandGitHub 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
Yann ColletandGitHub 9873a01368 Merge pull request #4550 from facebook/dependabot/github_actions/msys2/setup-msys2-2.30.0
Bump msys2/setup-msys2 from 2.29.0 to 2.30.0
2025-12-15 01:11:42 -08:00
dependabot[bot]andGitHub de9b0810ec Bump actions/cache from 4 to 5
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 05:04:57 +00:00
dependabot[bot]andGitHub c26db2d0e8 Bump actions/upload-artifact from 5.0.0 to 6.0.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 05:04:53 +00:00
dependabot[bot]andGitHub 1e06c42eec Bump msys2/setup-msys2 from 2.29.0 to 2.30.0
Bumps [msys2/setup-msys2](https://github.com/msys2/setup-msys2) from 2.29.0 to 2.30.0.
- [Release notes](https://github.com/msys2/setup-msys2/releases)
- [Changelog](https://github.com/msys2/setup-msys2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/msys2/setup-msys2/compare/fb197b72ce45fb24f17bf3f807a388985654d1f2...4f806de0a5a7294ffabaff804b38a9b435a73bda)

---
updated-dependencies:
- dependency-name: msys2/setup-msys2
  dependency-version: 2.30.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 05:04:44 +00:00
Yann ColletandGitHub bfd8ad886f Merge pull request #4544 from facebook/dependabot/github_actions/actions/setup-java-5.1.0
Bump actions/setup-java from 5.0.0 to 5.1.0
2025-12-10 18:25:33 +09:00
Yann Collet c7c29693c9 [ci] update freebsd image 2025-12-09 08:30:24 +09:00
dependabot[bot]andGitHub f28b1173df Bump actions/setup-java from 5.0.0 to 5.1.0
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/dded0888837ed1f317902acf8a20df0ad188d165...f2beeb24e141e01a676f977032f5a29d81c9e27e)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: 5.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-08 23:25:45 +00:00
Yann ColletandGitHub 94117e39ca Merge pull request #4543 from facebook/dependabot/github_actions/actions/checkout-6.0.1
Bump actions/checkout from 6.0.0 to 6.0.1
2025-12-09 08:24:47 +09:00
dependabot[bot]andGitHub 757f1bf465 Bump actions/checkout from 6.0.0 to 6.0.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.0 to 6.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v6...v6.0.1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-08 05:05:30 +00:00
Yann ColletandGitHub 92505deb29 Merge pull request #4525 from Polaris-911/new-feature
Add RISC-V 64-bit architecture detection
2025-12-02 10:38:48 -08:00
Yann ColletandGitHub f567f38b73 Merge pull request #4531 from lukaskollmer/lukas/fix-swift-build
modulemap: remove `config_macros`
2025-12-02 10:37:35 -08:00
Yann ColletandGitHub 9e23edcf1e Merge pull request #4494 from LecrisUT/maint-cmake
Split lib target types in their own export groups
2025-12-01 15:29:12 -08:00
Lukas Kollmer 88ff5c2769 modulemap: remove config_macros 2025-11-25 16:38:08 +01:00
Yann ColletandGitHub d462f691ba Merge pull request #4529 from facebook/dependabot/github_actions/actions/checkout-6.0.0
Bump actions/checkout from 5.0.0 to 6.0.0
2025-11-24 03:01:17 -08:00
dependabot[bot]andGitHub e23477ce3e Bump actions/checkout from 5.0.0 to 6.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 05:05:06 +00:00
Yann ColletandGitHub 448cd34087 Merge pull request #4522 from facebook/dependabot/github_actions/github/codeql-action-4.31.2
Bump github/codeql-action from 3.30.1 to 4.31.2
2025-11-03 15:51:17 +01:00
黄尚诚10330306 71146f5b6d Add RISC-V 64-bit architecture detection 2025-11-03 16:37:05 +08:00