]>
git.ipfire.org Git - thirdparty/zstd.git/log
W. Felix Handte [Wed, 13 Mar 2024 20:33:30 +0000 (16:33 -0400)]
Remove Erroneous Exclusion of Hidden Files and Folders in `--output-dir-mirror`
W. Felix Handte [Wed, 13 Mar 2024 20:32:04 +0000 (16:32 -0400)]
Add a Few Tests
Yann Collet [Wed, 13 Mar 2024 14:15:45 +0000 (07:15 -0700)]
Merge pull request #3958 from facebook/doc3698
updated documentation
Yann Collet [Wed, 13 Mar 2024 14:15:06 +0000 (07:15 -0700)]
Merge pull request #3956 from facebook/fix3702
Do not truncate file name in verbose mode
Nick Terrell [Tue, 12 Mar 2024 19:38:21 +0000 (12:38 -0700)]
[CI] Run tests with CMake on Windows
Build and run tests on Windows with CMake
Nick Terrell [Tue, 12 Mar 2024 19:16:55 +0000 (12:16 -0700)]
[cpu] Backport fix for rbx clobbering on Windows with Clang
Backport folly fix for rbx clobbering: https://github.com/facebook/folly/commit/
f22f88b8b9d70160388f0f149bc9abaeb82c250b
This supercedes PR #3646.
Yann Collet [Tue, 12 Mar 2024 22:31:01 +0000 (15:31 -0700)]
Merge pull request #3954 from facebook/zeroSeq_sample
Add the zeroSeq sample
Yonatan Komornik [Tue, 12 Mar 2024 22:10:07 +0000 (15:10 -0700)]
Updates `ZSTD_RowFindBestMatch` comment (#3947)
Updates the comment on the head of `ZSTD_RowFindBestMatch` to make sure it's aligned with recent changes to the hash table.
Elliot Gorokhovsky [Tue, 12 Mar 2024 21:07:06 +0000 (17:07 -0400)]
Exercise ZSTD_findDecompressedSize() in the simple decompression fuzzer (#3959)
* Improve decompression fuzzer
* Fix legacy frame header fuzzer crash, add unit test
Yann Collet [Tue, 12 Mar 2024 20:09:10 +0000 (13:09 -0700)]
fix duplicated paragraph
reported by @zougloub
Yann Collet [Tue, 12 Mar 2024 19:27:33 +0000 (12:27 -0700)]
updated documentation
following recommendations by @zougloub at #3698
Elliot Gorokhovsky [Tue, 12 Mar 2024 18:36:54 +0000 (14:36 -0400)]
Export ZSTD_LEGACY_SUPPORT in tests/Makefile (#3955)
This doesn't affect most of the targets, but will help me sleep better at night knowing that future refactors won't break the legacy support.
Should have been included in https://github.com/facebook/zstd/pull/3943 but I noticed after that merged, so putting up a separate PR.
Yann Collet [Tue, 12 Mar 2024 18:27:42 +0000 (11:27 -0700)]
no longer truncate file name in verbose mode
fix #3702
daniellerozenblit [Tue, 12 Mar 2024 17:49:06 +0000 (13:49 -0400)]
Add common file extensions to --exclude-compressed (#3951)
Yann Collet [Tue, 12 Mar 2024 17:47:27 +0000 (10:47 -0700)]
removed golden-decompression/.gitignore
replaced by an exclusion rule in tests/.gitignore
Yann Collet [Tue, 12 Mar 2024 16:54:40 +0000 (09:54 -0700)]
Merge pull request #3901 from robandpdx-org/convert-facebook-zstd-to-actions
Convert the CircleCI workflow to a GitHub Actions workflow
Felix Handte [Tue, 12 Mar 2024 16:49:19 +0000 (12:49 -0400)]
Merge pull request #3952 from felixhandte/stop-hardcoding-posix-version-on-bsd
Stop Hardcoding the POSIX Version on BSDs
Yann Collet [Tue, 12 Mar 2024 16:47:54 +0000 (09:47 -0700)]
add same .gitignore rule in golden-decompression/
as requested by @embg
Yann Collet [Tue, 12 Mar 2024 16:46:48 +0000 (09:46 -0700)]
Merge pull request #3933 from facebook/fix3819
prevent XXH64 from being autovectorized by XXH512 by default
Yann Collet [Tue, 12 Mar 2024 16:46:20 +0000 (09:46 -0700)]
Merge pull request #3934 from facebook/risc5ci
add RISC-V emulation tests to Github CI
Yann Collet [Tue, 12 Mar 2024 16:45:20 +0000 (09:45 -0700)]
Merge pull request #3936 from facebook/debug5
minor: fix incorrect debug level
Yann Collet [Tue, 12 Mar 2024 16:44:52 +0000 (09:44 -0700)]
Merge pull request #3942 from facebook/fix3719
Fix #3719 : mixing -c, -o and --rm
Yann Collet [Tue, 12 Mar 2024 16:44:20 +0000 (09:44 -0700)]
Merge pull request #3946 from facebook/cmake_hpux
cmake refactor: move HP-UX specific logic into its own function
Yann Collet [Tue, 12 Mar 2024 16:43:59 +0000 (09:43 -0700)]
Merge pull request #3948 from facebook/tests_2927
add tests inspired from #2927
Yann Collet [Tue, 12 Mar 2024 16:28:25 +0000 (09:28 -0700)]
Add the zeroSeq sample
that should have been part of #3674
Yann Collet [Tue, 12 Mar 2024 16:25:06 +0000 (09:25 -0700)]
Merge pull request #3937 from facebook/offset0
new method to deal with offset==0 erroneous edge case
acceptacross [Tue, 12 Mar 2024 15:44:42 +0000 (23:44 +0800)]
chore: fix some typos (#3949)
Signed-off-by: acceptacross <csqcqs@gmail.com>
Elliot Gorokhovsky [Tue, 12 Mar 2024 15:25:00 +0000 (11:25 -0400)]
Pin tsan and msan CI jobs to ubuntu-20.04 (#3945)
Elliot Gorokhovsky [Tue, 12 Mar 2024 14:08:26 +0000 (10:08 -0400)]
Use ZSTD_LEGACY_SUPPORT=5 in make test (#3943)
Yann Collet [Tue, 12 Mar 2024 00:57:57 +0000 (17:57 -0700)]
add tests inspired from #2927
centered around -T# and --fast=# arguments
Yonatan Komornik [Mon, 11 Mar 2024 23:28:32 +0000 (16:28 -0700)]
Fix AsyncIO reading seed queueing (#3940)
Fixes a bug in AsyncIO where we queue reads after opening a file so our queue will always be saturated (or as saturated as possible).
Previous code was looping up to `availableJobsCount` not realizing `availableJobsCount` was also decreasing in each iteration, so instead of queueing 10 jobs we'd queue 5 (and instead of 2 we'd queue 1).
This PR fixes the loop to queue as long as `availableJobsCount` is not 0.
Yann Collet [Mon, 11 Mar 2024 23:11:15 +0000 (16:11 -0700)]
cmake refactor: move HP-UX specific logic into its own function
reduce visual clutter of corner case configuration.
Yann Collet [Mon, 11 Mar 2024 22:55:58 +0000 (15:55 -0700)]
Merge pull request #3862 from likema/fix-hpux-parisc
Fix building on HP-UX 11.11 PA-RISC
W. Felix Handte [Mon, 11 Mar 2024 19:20:06 +0000 (15:20 -0400)]
Stop Hardcoding the POSIX Version on BSDs
BSDs should all have a `unistd.h` header.
Yann Collet [Mon, 11 Mar 2024 19:23:37 +0000 (12:23 -0700)]
minor man page clarification
Yann Collet [Mon, 11 Mar 2024 19:17:34 +0000 (12:17 -0700)]
added tests
Yann Collet [Mon, 11 Mar 2024 18:38:55 +0000 (11:38 -0700)]
fix #3719
only disable `--rm` at end of command line parsing,
so that `-c` only disables `--rm` if it's effectively selected,
and not if it's overriden by a later `-o FILE` command.
Yann Collet [Sat, 9 Mar 2024 23:34:02 +0000 (15:34 -0800)]
Merge pull request #3860 from likema/fix-xxhash-aix-51
Fix building xxhash on AIX 5.1
Yann Collet [Sat, 9 Mar 2024 22:24:57 +0000 (14:24 -0800)]
Merge pull request #3929 from facebook/llu_vscode
fix LLU->ULL
Yann Collet [Sat, 9 Mar 2024 22:24:38 +0000 (14:24 -0800)]
Merge pull request #3928 from facebook/doc3727
update -V documentation
Yann Collet [Sat, 9 Mar 2024 08:33:44 +0000 (00:33 -0800)]
produced golden sample for the offset==0 decoder test
is correctly detected as corrupted by new version,
and is accepted (changed into offset==1) by older version.
updated documentation accordingly, with an hexadecimal representation.
Yann Collet [Fri, 8 Mar 2024 23:55:30 +0000 (15:55 -0800)]
update documentation
Yann Collet [Fri, 8 Mar 2024 22:55:38 +0000 (14:55 -0800)]
new method to deal with offset==0
in this new method, when an `offset==0` is detected,
it's converted into (size_t)(-1), instead of 1.
The logic is that (size_t)(-1) is effectively an extremely large positive number,
which will not pass the offset distance test at next stage (`execSequence()`).
Checked the source code, and offset is always checked (as it should),
using a formula which is not vulnerable to arithmetic overflow:
```
RETURN_ERROR_IF(sequence.offset > (size_t)(oLitEnd - virtualStart),
```
The benefit is that such a case (offset==0) is always detected as corrupted data
as opposed to relying on the checksum to detect the error.
Yann Collet [Fri, 8 Mar 2024 23:25:48 +0000 (15:25 -0800)]
Merge pull request #3824 from elasota/specify-zero-offset
Specify offset 0 as invalid and specify required fixup behavior
Yann Collet [Fri, 8 Mar 2024 23:02:00 +0000 (15:02 -0800)]
Merge pull request #3816 from elasota/fix-state-table
Fix state table formatting
Yann Collet [Fri, 8 Mar 2024 22:29:44 +0000 (14:29 -0800)]
minor: fix incorrect debug level
Yann Collet [Fri, 8 Mar 2024 00:54:44 +0000 (16:54 -0800)]
added RISC-V emulation tests on Github CI
Yann Collet [Fri, 8 Mar 2024 00:43:13 +0000 (16:43 -0800)]
prevent XXH64 from being autovectorized by XXH512 by default
backport fix https://github.com/Cyan4973/xxHash/pull/924 from libxxhash
Yann Collet [Tue, 5 Mar 2024 21:40:12 +0000 (13:40 -0800)]
Merge pull request #3840 from aimuz/fix-reserved
lib/decompress: check for reserved bit corruption in zstd
Yann Collet [Mon, 4 Mar 2024 08:16:01 +0000 (00:16 -0800)]
fix LLU->ULL
LLU is a correct prefix according to C99 & C11 standards (but not C90).
However, older versions of Visual Studio do not work with it.
Replace by ULL, which doesn't have this issue.
Fixes https://github.com/facebook/zstd/issues/3647
Yann Collet [Mon, 4 Mar 2024 07:24:40 +0000 (23:24 -0800)]
update -V documentation
to answer #3727 comment
Yann Collet [Mon, 4 Mar 2024 07:18:03 +0000 (23:18 -0800)]
Merge pull request #3927 from facebook/dependabot/github_actions/github/codeql-action-3.24.6
Bump github/codeql-action from 3.24.5 to 3.24.6
dependabot[bot] [Mon, 4 Mar 2024 05:34:30 +0000 (05:34 +0000)]
Bump github/codeql-action from 3.24.5 to 3.24.6
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.24.5 to 3.24.6.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/
47b3d888fe66b639e431abf22ebca059152f1eea ...
8a470fddafa5cbb6266ee11b37ef4d8aae19c571 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Yann Collet [Mon, 4 Mar 2024 03:13:00 +0000 (19:13 -0800)]
Merge pull request #3753 from facebook/make2
minor Makefile refactoring
Yann Collet [Mon, 4 Mar 2024 02:57:19 +0000 (18:57 -0800)]
Merge pull request #3804 from facebook/dependabot/github_actions/ossf/scorecard-action-2.3.1
Bump ossf/scorecard-action from 2.2.0 to 2.3.1
Yann Collet [Mon, 4 Mar 2024 02:56:06 +0000 (18:56 -0800)]
Merge pull request #3918 from facebook/dependabot/github_actions/github/codeql-action-3.24.5
Bump github/codeql-action from 3.23.0 to 3.24.5
Yann Collet [Mon, 4 Mar 2024 02:54:05 +0000 (18:54 -0800)]
Merge pull request #3926 from facebook/checkoutVersion
fix version of actions/checkout
Yann Collet [Mon, 4 Mar 2024 02:47:08 +0000 (18:47 -0800)]
fix version of actions/checkout
Yann Collet [Sun, 3 Mar 2024 23:04:22 +0000 (15:04 -0800)]
Merge pull request #3811 from teo-tsirpanis/unified-target
Export a `zstd::libzstd` CMake target if only static or dynamic linkage is specified.
Theodore Tsirpanis [Tue, 27 Feb 2024 23:25:15 +0000 (01:25 +0200)]
Merge branch 'dev' into unified-target
Theodore Tsirpanis [Tue, 27 Feb 2024 21:39:59 +0000 (23:39 +0200)]
Define the unified target inside the CMake project, and export it.
This is less error-prone.
Yann Collet [Tue, 27 Feb 2024 21:28:32 +0000 (13:28 -0800)]
Merge pull request #3916 from facebook/no_sprintf
removed sprintf usage from zstdcli.c
Yann Collet [Mon, 26 Feb 2024 23:38:00 +0000 (15:38 -0800)]
Merge pull request #3917 from facebook/targetCBlock_moreRegular
More regular block sizes with `targetCBlockSize`
Yann Collet [Mon, 26 Feb 2024 22:31:12 +0000 (14:31 -0800)]
sizeBlockSequences() also tracks uncompressed size
and only defines a sub-block boundary when
it believes that it is compressible.
It's effectively an optimization,
avoiding a compression cycle to reach the same conclusion.
Yann Collet [Mon, 26 Feb 2024 22:06:34 +0000 (14:06 -0800)]
minor refactor for clarity
since we can ensure that nbSubBlocks>0
Yann Collet [Mon, 26 Feb 2024 21:27:59 +0000 (13:27 -0800)]
optimization: bail out faster in presence of incompressible data
Yann Collet [Mon, 26 Feb 2024 21:23:59 +0000 (13:23 -0800)]
nit: comment indentation
as reported by @terrelln
Yann Collet [Mon, 26 Feb 2024 21:21:14 +0000 (13:21 -0800)]
minor: reformulate nbSubBlocks assignment
Yann Collet [Mon, 26 Feb 2024 20:26:54 +0000 (12:26 -0800)]
fix extraneous semicolon ';'
as reported by @terrelln
dependabot[bot] [Mon, 26 Feb 2024 05:59:24 +0000 (05:59 +0000)]
Bump github/codeql-action from 3.23.0 to 3.24.5
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.23.0 to 3.24.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/
e5f05b81d5b6ff8cfa111c80c22c5fd02a384118 ...
47b3d888fe66b639e431abf22ebca059152f1eea )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Yann Collet [Mon, 26 Feb 2024 03:45:32 +0000 (19:45 -0800)]
fix minor visual static analyzer warning
it's a false positive,
but change the code nonetheless to make it more obvious to the static analyzer.
Yann Collet [Mon, 26 Feb 2024 01:33:41 +0000 (17:33 -0800)]
targetCBlockSize: modified splitting strategy to generate blocks of more regular size
notably avoiding to feature a larger first block
Yann Collet [Sun, 25 Feb 2024 07:03:40 +0000 (23:03 -0800)]
removed sprintf usage from zstdcli.c
some static analyzers flag this standard C90 function as unsafe.
Yann Collet [Sun, 25 Feb 2024 02:07:35 +0000 (18:07 -0800)]
Merge pull request #3915 from facebook/targetCBlockSize
Improve speed of ZSTD_c_targetCBlockSize
Yann Collet [Sat, 24 Feb 2024 09:59:16 +0000 (01:59 -0800)]
reduced minimum compressed block size
with the intention to match the transport layer size,
such as Ethernet and 4G mobile networks.
Yann Collet [Sat, 24 Feb 2024 09:28:17 +0000 (01:28 -0800)]
update API documentation
Yann Collet [Sat, 24 Feb 2024 09:24:58 +0000 (01:24 -0800)]
fix partial block uncompressed
Yann Collet [Sat, 24 Feb 2024 02:48:29 +0000 (18:48 -0800)]
fixed some regressionTests
but not all
Yann Collet [Sat, 24 Feb 2024 00:05:09 +0000 (16:05 -0800)]
minor: fix overly cautious conversion warning
Yann Collet [Fri, 23 Feb 2024 23:35:12 +0000 (15:35 -0800)]
fix long sequences (> 64 KB)
Yann Collet [Fri, 23 Feb 2024 22:53:56 +0000 (14:53 -0800)]
fix issue with incompressible sections
Yann Collet [Fri, 23 Feb 2024 22:03:26 +0000 (14:03 -0800)]
speed optimized version of targetCBlockSize
note that the size of individual compressed blocks will vary more wildly with this modification.
But it seems good enough for a first test, and fix the speed regression issue.
Further refinements can be attempted later.
Yann Collet [Fri, 23 Feb 2024 21:13:03 +0000 (13:13 -0800)]
benchmark more can test targetCBlockSize
Yann Collet [Thu, 22 Feb 2024 17:42:02 +0000 (09:42 -0800)]
Merge pull request #3903 from gruenich/feature/reduce-scope-of-variables
Reduce scope of variables
Yann Collet [Thu, 22 Feb 2024 17:41:26 +0000 (09:41 -0800)]
Merge pull request #3905 from facebook/dependabot/github_actions/actions/upload-artifact-4.3.1
Bump actions/upload-artifact from 4.3.0 to 4.3.1
Yann Collet [Thu, 22 Feb 2024 17:41:12 +0000 (09:41 -0800)]
Merge pull request #3913 from facebook/lorem2
Lorem Ipsum generator update
Yann Collet [Wed, 21 Feb 2024 17:36:48 +0000 (09:36 -0800)]
Merge pull request #3914 from facebook/setup_msys2_v2.22.0
updated setup-msys2 to v2.22.0
Yann Collet [Wed, 21 Feb 2024 08:22:04 +0000 (00:22 -0800)]
updated setup-msys2 to v2.22.0
following a warning in recent test reports
```
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: msys2/setup-msys2@
5beef6d11f48bba68b9eb503e3adc60b23c0cc36 . For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
```
Yann Collet [Wed, 21 Feb 2024 07:36:04 +0000 (23:36 -0800)]
fix include order
Yann Collet [Wed, 21 Feb 2024 06:59:58 +0000 (22:59 -0800)]
fix Visual Studio datagen recipe
Yann Collet [Wed, 21 Feb 2024 06:43:22 +0000 (22:43 -0800)]
fix clangbuild
notably -Wconversion and -Wdocumentation
Yann Collet [Wed, 21 Feb 2024 04:20:40 +0000 (20:20 -0800)]
fix cmake build
Yann Collet [Wed, 21 Feb 2024 03:21:01 +0000 (19:21 -0800)]
fix c89 compatibility by removing snprintf()
note that this function has been in the code for a long while,
so why does it only start failing CI tests now ?
Yann Collet [Wed, 21 Feb 2024 02:17:28 +0000 (18:17 -0800)]
fix meson datagen build
Yann Collet [Wed, 21 Feb 2024 02:06:56 +0000 (18:06 -0800)]
fix datagen size control
Yann Collet [Tue, 20 Feb 2024 23:47:09 +0000 (15:47 -0800)]
internal benchmark: can select size of generated synthetic sample
Yann Collet [Tue, 20 Feb 2024 23:24:25 +0000 (15:24 -0800)]
datagen generates lorem ipsum by default
Yann Collet [Tue, 20 Feb 2024 21:27:36 +0000 (13:27 -0800)]
increase word dictionary
for higher variety of messages.
Now, level 5 compresses better than level 4 (by a hair).
Yann Collet [Tue, 20 Feb 2024 20:26:37 +0000 (12:26 -0800)]
runtime weight distribution table
and made small words a bit more common.
Yann Collet [Tue, 20 Feb 2024 08:37:21 +0000 (00:37 -0800)]
add question marks
and (slightly) longer sentences.