]>
git.ipfire.org Git - thirdparty/zstd.git/log
Jonathan Ringer [Fri, 9 Jul 2021 20:21:15 +0000 (13:21 -0700)]
pzstd: fix linking for static builds
binhdvo [Thu, 1 Jul 2021 14:39:58 +0000 (10:39 -0400)]
Merge pull request #2717 from binhdvo/bootcamp
Proactively skip huffman compression based on sampling where non-comp…
sen [Wed, 30 Jun 2021 18:37:21 +0000 (14:37 -0400)]
Merge pull request #2720 from senhuang42/remove_folder
Remove folder when done with test
senhuang42 [Wed, 30 Jun 2021 17:09:00 +0000 (13:09 -0400)]
Remove folder when done with test
Binh Vo [Mon, 28 Jun 2021 14:06:20 +0000 (10:06 -0400)]
Proactively skip huffman compression based on sampling where non-compressibility is suspected
Nick Terrell [Wed, 30 Jun 2021 01:33:40 +0000 (18:33 -0700)]
Merge pull request #2655 from heitbaum/patch-1
[trace] remove zstd_trace.c reference from freestanding
Nick Terrell [Tue, 29 Jun 2021 23:53:10 +0000 (16:53 -0700)]
Merge pull request #2719 from danlark1/danlark_iwyu
Include what you use in zstd_ldm_geartab
Nick Terrell [Tue, 29 Jun 2021 18:34:36 +0000 (11:34 -0700)]
Merge pull request #2689 from danlark1/dev
Optimize zstd decompression by another x%
Danila Kutenin [Tue, 29 Jun 2021 16:57:53 +0000 (17:57 +0100)]
Include what you use in zstd_ldm_geartab
Danila Kutenin [Tue, 29 Jun 2021 08:06:47 +0000 (09:06 +0100)]
Add possible improvements for gcc-11
Yann Collet [Thu, 24 Jun 2021 17:57:18 +0000 (10:57 -0700)]
Merge pull request #2716 from facebook/fix2701
remove invalid test
sen [Thu, 24 Jun 2021 17:02:11 +0000 (13:02 -0400)]
Merge pull request #2715 from senhuang42/sequence_api_3
[RFC] Add internal API for converting ZSTD_Sequence into seqStore
Yann Collet [Thu, 24 Jun 2021 16:07:55 +0000 (09:07 -0700)]
remove invalid test
`--mt` is no longer supported by `zstreamtest`
(relevant API entry point has been removed from `libzstd`).
fix #2701
senhuang42 [Wed, 23 Jun 2021 15:21:14 +0000 (11:21 -0400)]
Add simple API for converting ZSTD_Sequence into seqStore
Felix Handte [Fri, 18 Jun 2021 20:16:44 +0000 (16:16 -0400)]
Merge pull request #2714 from luisdallos/build-macros-typos
lib/Makefile: Fix small typo in ZSTD_FORCE_DECOMPRESS_* build macros
Usuario [Fri, 18 Jun 2021 14:07:39 +0000 (10:07 -0400)]
lib/Makefile: Fix small typo in ZSTD_FORCE_DECOMPRESS_* build macros
binhdvo [Thu, 17 Jun 2021 13:06:18 +0000 (09:06 -0400)]
Merge pull request #2710 from binhdvo/bootcamp
Add option to use logical cores for default threads
Binh Vo [Wed, 16 Jun 2021 13:38:43 +0000 (09:38 -0400)]
Add option to use logical cores for default threads
binhdvo [Mon, 14 Jun 2021 23:00:31 +0000 (19:00 -0400)]
Merge pull request #2708 from binhdvo/skippable
Add API for fetching skippable frame content
Binh Vo [Fri, 11 Jun 2021 16:11:58 +0000 (12:11 -0400)]
Add API for fetching skippable frame content
Nick Terrell [Mon, 14 Jun 2021 19:33:50 +0000 (12:33 -0700)]
Merge pull request #2709 from terrelln/bounds-check-fix
[fix] Add missing bounds checks during compression
Nick Terrell [Mon, 14 Jun 2021 18:25:55 +0000 (11:25 -0700)]
[fix] Add missing bounds checks during compression
* The block splitter missed a bounds check, so when the buffer is too small it
passes an erroneously large size to `ZSTD_entropyCompressSeqStore()`, which
can then write the compressed data past the end of the buffer. This is a new
regression in v1.5.0 when the block splitter is enabled. It is either enabled
explicitly, or implicitly when using the optimal parser and `ZSTD_compress2()`
or `ZSTD_compressStream*()`.
* `HUF_writeCTable_wksp()` omits a bounds check when calling
`HUF_compressWeights()`. If it is called with `dstCapacity == 0` it will pass
an erroneously large size to `HUF_compressWeights()`, which can then write
past the end of the buffer. This bug has been present for ages. However, I
believe that zstd cannot trigger the bug, because it never calls
`HUF_compress*()` with `dstCapacity == 0` because of [this check][1].
Credit to: Oss-Fuzz
[1]: https://github.com/facebook/zstd/blob/
89127e5ee2f3c1e141668fa6d4ee91245f05d132 /lib/compress/zstd_compress_literals.c#L100
binhdvo [Fri, 11 Jun 2021 18:08:23 +0000 (14:08 -0400)]
Merge pull request #2705 from binhdvo/bootcamp
Add support for negative values in advanced flags
Binh Vo [Wed, 9 Jun 2021 20:49:36 +0000 (16:49 -0400)]
Add support for negative levels in --adapt=min and --adapt=max"
Felix Handte [Thu, 10 Jun 2021 20:53:43 +0000 (16:53 -0400)]
Merge pull request #2702 from felixhandte/human_size_output
Format File Sizes Human-Readable in the CLI
W. Felix Handte [Thu, 10 Jun 2021 17:28:38 +0000 (13:28 -0400)]
Whitespace Fixes to Improve Cross-Line Alignment
W. Felix Handte [Thu, 10 Jun 2021 17:14:18 +0000 (13:14 -0400)]
Update Tests to Reflect New Formatting
W. Felix Handte [Thu, 10 Jun 2021 16:31:42 +0000 (12:31 -0400)]
Convert Other Size Displays to Use Human-Readable Formatting
W. Felix Handte [Thu, 10 Jun 2021 16:06:51 +0000 (12:06 -0400)]
Switch to Binary Size Prefixes (e.g., "MB" -> "MiB")
Suggested by @aqrit, a little more verbose, but hopefully addresses a real
ambiguity.
W. Felix Handte [Wed, 9 Jun 2021 20:13:00 +0000 (16:13 -0400)]
Require `-vv` to Enable Full Precision
W. Felix Handte [Wed, 9 Jun 2021 20:04:10 +0000 (16:04 -0400)]
Apply to Other Print Statement as Well
W. Felix Handte [Wed, 9 Jun 2021 19:28:12 +0000 (15:28 -0400)]
Fix Whitespace
W. Felix Handte [Wed, 9 Jun 2021 19:26:16 +0000 (15:26 -0400)]
Change Suffix (e.g., "G" -> " GB")
W. Felix Handte [Wed, 9 Jun 2021 19:22:59 +0000 (15:22 -0400)]
In Verbose Mode, Preserve Full Precision Where Possible
W. Felix Handte [Wed, 9 Jun 2021 17:27:57 +0000 (13:27 -0400)]
Fix Integer Constants; Fix Comparison
W. Felix Handte [Wed, 9 Jun 2021 17:05:44 +0000 (13:05 -0400)]
Avoid `snprintf()` in Preparing Human-Readable Sizes; Improve Formatting
This produces the following formatting:
Size | `zstd` | `ls -lh`
---------- | ------ | --------
1 | 1 | 1
12 | 12 | 12
123 | 123 | 123
1234 | 1.21K | 1.3K
12345 | 12.1K | 13K
123456 | 121K | 121K
1234567 | 1.18M | 1.2M
12345678 | 11.8M | 12M
123456789 | 118M | 118M
1234567890 | 1.15G | 1.2G
999 | 999 | 999
1000 | 1000 | 1000
1001 | 1001 | 1001
1023 | 1023 | 1023
1024 | 1.000K | 1.0K
1025 | 1.00K | 1.1K
999999 | 977K | 977K
1000000 | 977K | 977K
1000001 | 977K | 977K
1023999 | 1000K | 1000K
1024000 | 1000K | 1000K
1024001 | 1000K | 1001K
1048575 | 1024K | 1.0M
1048576 | 1.000M | 1.0M
1048577 | 1.00M | 1.1M
This was produced with the following invocation:
```
for N in 1 12 123 1234 12345 123456
1234567 12345678 123456789 1234567890 999 1000 1001 1023 1024 1025 999999
1000000 1000001 1023999 1024000 1024001 1048575 1048576 1048577 ; do
head -c $N /dev/urandom > r$N
done
./zstd -i1 -b1 -S r1 r12 r123 r1234 r12345 r123456 r1234567 r12345678 r123456789 r1234567890 r999 r1000 r1001 r1023 r1024 r1025 r999999 r1000000 r1000001 r1023999 r1024000 r1024001 r1048575 r1048576 r1048577
```
Scott Baker [Mon, 7 Jun 2021 20:53:55 +0000 (13:53 -0700)]
Attempt to fix a failing test with help from @aqrit
Scott Baker [Mon, 7 Jun 2021 16:31:38 +0000 (09:31 -0700)]
Some fixes to address things @felixhandte found
Scott Baker [Sat, 5 Jun 2021 18:12:09 +0000 (11:12 -0700)]
Try enabling the BIG strings now the unsigned long long is in effect
Scott Baker [Sat, 5 Jun 2021 18:11:09 +0000 (11:11 -0700)]
Try unsigned long long
Scott Baker [Sat, 5 Jun 2021 17:30:21 +0000 (10:30 -0700)]
Update humanSize() to skip the big numbers (it requires 64 bit)
Scott Baker [Sat, 5 Jun 2021 17:06:40 +0000 (10:06 -0700)]
Use unsigned long instead to help with some tests
Scott Baker [Sat, 5 Jun 2021 15:45:35 +0000 (08:45 -0700)]
human_size() should use size_t
Scott Baker [Sat, 5 Jun 2021 14:41:26 +0000 (07:41 -0700)]
Convert tabs to spaces
Scott Baker [Sat, 5 Jun 2021 05:21:00 +0000 (22:21 -0700)]
Use human_size() on the "multiple files compressed" output also
Scott Baker [Sat, 5 Jun 2021 05:09:40 +0000 (22:09 -0700)]
Use human_size() in the benchmark output also
Scott Baker [Sat, 5 Jun 2021 05:03:33 +0000 (22:03 -0700)]
Move the variable declarations to the top
Scott Baker [Sat, 5 Jun 2021 05:02:32 +0000 (22:02 -0700)]
Make the variable types match
Scott Baker [Sat, 5 Jun 2021 04:44:40 +0000 (21:44 -0700)]
Convert names to CamelCase
Scott Baker [Sat, 5 Jun 2021 03:28:55 +0000 (20:28 -0700)]
Put the human_size() function in util.c
Scott Baker [Sat, 5 Jun 2021 03:25:31 +0000 (20:25 -0700)]
Make the CLI output the file sizes in human readable format
sen [Thu, 10 Jun 2021 13:39:17 +0000 (16:39 +0300)]
Merge pull request #2697 from senhuang42/entropy_repeat_fix
[bug] Fix entropy repeat mode bug
Yann Collet [Wed, 9 Jun 2021 20:03:28 +0000 (13:03 -0700)]
Merge pull request #2704 from facebook/revert-2703-bootcamp
Revert "Add support for --long-param flag, fix #2104"
binhdvo [Wed, 9 Jun 2021 19:35:43 +0000 (15:35 -0400)]
Revert "Add support for --long-param flag, fix #2104"
binhdvo [Wed, 9 Jun 2021 19:03:38 +0000 (15:03 -0400)]
Merge pull request #2703 from binhdvo/bootcamp
Add support for --long-param flag, fix #2104
Binh Vo [Wed, 9 Jun 2021 18:00:29 +0000 (14:00 -0400)]
Add support for --long-param flag
Yann Collet [Wed, 9 Jun 2021 16:56:01 +0000 (09:56 -0700)]
Merge pull request #2698 from binhdvo/bootcamp
Fix --progress flag to properly control progress display and default …
sen [Wed, 9 Jun 2021 15:46:52 +0000 (18:46 +0300)]
Merge pull request #2678 from senhuang42/big_endian_no_intrinsics_fuzztest
Fuzzer test with no intrinsics on S390x (big endian)
sen [Wed, 9 Jun 2021 07:41:35 +0000 (10:41 +0300)]
Merge pull request #2700 from gauthamkrishna9991/update_readme_travis_link
Update README for Travis CI Badge
Goutham Krishna [Wed, 9 Jun 2021 07:08:22 +0000 (12:38 +0530)]
Update README for Travis CI Badge
### Updating Badge link to the newTravis CI link.
- Update badge root to `api.travis-ci.com` (new)
from `travis-ci.org` (old), which was migrated.
aqrit [Wed, 9 Jun 2021 05:50:25 +0000 (01:50 -0400)]
Flatten ZSTD_row_getMatchMask (#2681)
* Flatten ZSTD_row_getMatchMask
* Remove the SIMD abstraction layer.
* Add big endian support.
* Align `hashTags` within `tagRow` to a 16-byte boundary.
* Switch SSE2 to use aligned reads.
* Optimize scalar path using SWAR.
* Optimize neon path for `n == 32`
* Work around minor clang issue for NEON (https://bugs.llvm.org/show_bug.cgi?id=49577)
* replace memcpy with MEM_readST
* silence alignment warnings
* fix neon casts
* Update zstd_lazy.c
* unify simd preprocessor detection (#3)
* remove duplicate asserts
* tweak rotates
* improve endian detection
* add cast
there is a fun little catch-22 with gcc: result from pmovmskb has to be cast to uint32_t to avoid a zero-extension
but must be uint16_t to get gcc to generate a rotate instruction..
* more casts
* fix casts
better work-around for the (bogus) warning: unary minus on unsigned
Binh Vo [Mon, 7 Jun 2021 15:50:22 +0000 (11:50 -0400)]
Fix --progress flag to properly control progress display and default progress display on when using -v
Danila Kutenin [Tue, 8 Jun 2021 19:54:21 +0000 (20:54 +0100)]
Add comment for gcc-11
Danila Kutenin [Tue, 8 Jun 2021 19:45:57 +0000 (20:45 +0100)]
Be C89 compliant and fix alignment for gcc11
Felix Handte [Mon, 7 Jun 2021 17:04:19 +0000 (13:04 -0400)]
Merge pull request #2654 from wolfpld/dev
Initialize "potentially uninitialized" pointers.
sen [Mon, 7 Jun 2021 09:44:31 +0000 (12:44 +0300)]
Merge pull request #2691 from senhuang42/per_pr_regressiontest
Make regression test run on every PR
Sen Huang [Mon, 7 Jun 2021 07:44:23 +0000 (00:44 -0700)]
Add no intrinsics fuzztest, rowhash compression size test, and S390X to travis
senhuang42 [Tue, 1 Jun 2021 02:59:01 +0000 (05:59 +0300)]
Make regression test run on every PR
Sen Huang [Mon, 7 Jun 2021 07:32:03 +0000 (00:32 -0700)]
Fix entropy repeat mode bug
Yann Collet [Thu, 3 Jun 2021 19:41:23 +0000 (12:41 -0700)]
Merge pull request #2693 from binhdvo/bootcamp
Add documentation for --patch-from
Binh Vo [Thu, 3 Jun 2021 15:12:27 +0000 (11:12 -0400)]
Add documentation for --patch-from
sen [Thu, 3 Jun 2021 07:10:27 +0000 (10:10 +0300)]
Merge pull request #2684 from senhuang42/old_api_ldm_blocksplit
Add ldm and block splitter auto-enable to old api
Danila Kutenin [Sat, 29 May 2021 19:55:37 +0000 (20:55 +0100)]
Move declaration of 1 to an inlined cast
Danila Kutenin [Sat, 29 May 2021 17:21:10 +0000 (18:21 +0100)]
Optimize ZSTD_decodeSequence by another x%
sen [Thu, 27 May 2021 17:50:26 +0000 (13:50 -0400)]
Merge pull request #2686 from senhuang42/arm64fuzztest
Add arm64 fuzz test to travis
senhuang42 [Wed, 26 May 2021 18:51:04 +0000 (14:51 -0400)]
Add arm64 fuzz test to travis
sen [Wed, 26 May 2021 18:14:43 +0000 (14:14 -0400)]
Merge pull request #2682 from senhuang42/armbuild_fixtest
Make GH Actions CI tests run apt-get update before apt-get install
senhuang42 [Wed, 26 May 2021 17:38:36 +0000 (13:38 -0400)]
Update apt-get prior to tests that install packages
sen [Wed, 26 May 2021 17:35:53 +0000 (13:35 -0400)]
Merge pull request #2675 from senhuang42/ci_overhaul
[CI][1/2] Re-do the github actions workflows, migrate various travis and appveyor tests.
senhuang42 [Mon, 24 May 2021 16:57:56 +0000 (12:57 -0400)]
Add ldm and block splitter auto-enable to old api
senhuang42 [Tue, 18 May 2021 15:54:19 +0000 (11:54 -0400)]
Migrate travis CI tests
Nick Terrell [Wed, 19 May 2021 17:19:09 +0000 (10:19 -0700)]
Merge pull request #2673 from terrelln/regression
[test][regression] Update results.csv
Nick Terrell [Wed, 19 May 2021 17:18:58 +0000 (10:18 -0700)]
Merge pull request #2674 from terrelln/trace-aix
[trace] Refine the ZSTD_HAVE_WEAK_SYMBOLS detection
Nick Terrell [Wed, 19 May 2021 03:22:36 +0000 (20:22 -0700)]
[trace] Refine the ZSTD_HAVE_WEAK_SYMBOLS detection
* Only enable for ELF on x86-64 or i386.
* Also explicitly disable for AIX.
Fixes #2658.
Nick Terrell [Wed, 19 May 2021 02:46:37 +0000 (19:46 -0700)]
[test][regression] Update results.csv
Changing the repcode search slightly, and changing when zstd is in
ext-dict vs. prefix mode in edge cases, slightly changes the compressed
results.
sen [Mon, 17 May 2021 18:29:20 +0000 (14:29 -0400)]
Merge pull request #2667 from senhuang42/arm_tests_ci
[CI] Add ARM tests back into CI
sen [Mon, 17 May 2021 18:29:04 +0000 (14:29 -0400)]
Merge pull request #2668 from senhuang42/update_ci_platforms
[CI] Fix zlib-wrapper test
Yann Collet [Mon, 17 May 2021 18:22:56 +0000 (11:22 -0700)]
Merge pull request #2649 from felixhandte/circleci-release-job-fix
Fix CircleCI Config to Fully Remove `publish-github-release` Job
Yann Collet [Mon, 17 May 2021 18:20:50 +0000 (11:20 -0700)]
Merge pull request #2653 from TrianglesPCT/dev
Enable SSE2 compression path to work on MSVC
Yann Collet [Mon, 17 May 2021 17:15:55 +0000 (10:15 -0700)]
Merge pull request #2660 from facebook/diaz
improve tar compatibility
senhuang42 [Mon, 17 May 2021 16:54:34 +0000 (12:54 -0400)]
[ci] Add ARM tests back into CI
senhuang42 [Mon, 17 May 2021 17:04:55 +0000 (13:04 -0400)]
[ci] Use *-latest for platforms to test on
Yann Collet [Mon, 17 May 2021 04:49:21 +0000 (21:49 -0700)]
Merge pull request #2657 from dnelson-1901/dev-typofix
ZSTD_VecMask_next: fix incorrect variable name in fallback code path
Yann Collet [Sun, 16 May 2021 06:09:42 +0000 (23:09 -0700)]
improve tar compatibility
This patch is supposed to improve compatibility with less featured tar variants
"when the tar program used does not support historical options (without hyphen) nor the '-z' option."
Patch proposed by Antonio Diaz Diaz
Yann Collet [Sun, 16 May 2021 06:04:46 +0000 (23:04 -0700)]
minor mention of RFC8878
more recent update
Dan Nelson [Sat, 15 May 2021 15:20:37 +0000 (10:20 -0500)]
ZSTD_VecMask_next: fix incorrect variable name in fallback code path
heitbaum [Sat, 15 May 2021 05:04:02 +0000 (15:04 +1000)]
[trace] remove zstd_trace.c reference from freestanding
zstd_trace.c was removed as part of PR #2589
TrianglesPCT [Sat, 15 May 2021 01:23:13 +0000 (19:23 -0600)]
Update zstd_lazy.c
It put the changes back when I tried to make a separate pull request, i don't understand githubs interface at all.
TrianglesPCT [Sat, 15 May 2021 01:18:12 +0000 (19:18 -0600)]
Add files via upload
AVX2
TrianglesPCT [Sat, 15 May 2021 01:11:28 +0000 (19:11 -0600)]
Update zstd_lazy.c
add space