]>
git.ipfire.org Git - thirdparty/zstd.git/log
Nick Terrell [Fri, 15 Jan 2021 20:30:24 +0000 (15:30 -0500)]
Merge pull request #2473 from terrelln/recovery
[contrib][recovery] Add recovery_directory program
Nick Terrell [Fri, 15 Jan 2021 16:41:42 +0000 (08:41 -0800)]
[contrib][recovery] Add recovery_directory program
This program takes a file with concatenated zstd frames and splits the
file up by frame. E.g. if `dir.zst` has 4 frames:
```
> ./recover_directory dir.zst recovery/file
Recovering 4 files...
Recovered recovery/file0
Recovered recovery/file1
Recovered recovery/file2
Recovered recovery/file3
Complete
```
sen [Mon, 11 Jan 2021 17:35:34 +0000 (12:35 -0500)]
Merge pull request #2465 from senhuang42/cformat_2021
[license] Change year to 2021 compression_format.md
Nick Terrell [Mon, 11 Jan 2021 17:30:13 +0000 (12:30 -0500)]
Merge pull request #2462 from lazka/cmake-fix-pc-escaping
cmake: use configure_file() for creating the .pc file
senhuang42 [Mon, 11 Jan 2021 13:53:29 +0000 (08:53 -0500)]
Change year to 2021 for compression format file
Christoph Reiter [Sat, 9 Jan 2021 08:24:45 +0000 (09:24 +0100)]
cmake: use configure_file() for creating the .pc file
Escaping in add_custom_target() seems to depend on the shell used in the cmake
generator and using Ninja on Windows, which uses cmd.exe, results in stray backslashes
in the .pc file.
Instead of going through escaping hell just use configure_file() with the existing
libzstd.pc.in file already used by the simple Makefile based build system.
This fixes the .pc file syntax when building zstd with CMake+Ninja+gcc on Windows.
yumeyao [Fri, 8 Jan 2021 22:27:31 +0000 (06:27 +0800)]
Fix visibility of symbols in .so (#2441)
Fix visibility of symbols in .so and add an alias for renamed API
sen [Fri, 8 Jan 2021 21:49:45 +0000 (16:49 -0500)]
Merge pull request #2446 from senhuang42/multiple_ddicts_v3
[RFC] Support references to multiple DDicts
Yann Collet [Fri, 8 Jan 2021 01:10:13 +0000 (17:10 -0800)]
Merge pull request #2457 from facebook/cli-dll
zstd CLI can now be linked to libzstd dynamic library
Yann Collet [Fri, 8 Jan 2021 00:19:10 +0000 (16:19 -0800)]
Merge pull request #2459 from ThomasWaldmann/fix-typos
fix typos (work done by Andrea Gelmini)
senhuang42 [Thu, 7 Jan 2021 17:13:27 +0000 (12:13 -0500)]
Fix Visual and staticanalyze warnings
Thomas Waldmann [Thu, 7 Jan 2021 22:30:42 +0000 (23:30 +0100)]
fixup: lits means literals
Yann Collet [Thu, 7 Jan 2021 18:37:27 +0000 (10:37 -0800)]
Added library version check
Yann Collet [Thu, 7 Jan 2021 18:24:09 +0000 (10:24 -0800)]
Merge branch 'dev' into cli-dll
Yann Collet [Thu, 7 Jan 2021 18:23:14 +0000 (10:23 -0800)]
Merge pull request #2455 from facebook/lessTests
removed redundant tests
Thomas Waldmann [Thu, 7 Jan 2021 17:47:23 +0000 (18:47 +0100)]
fix typos (work done by Andrea Gelmini)
senhuang42 [Thu, 7 Jan 2021 17:09:46 +0000 (12:09 -0500)]
Allow freestanding lib script regex to detect XXH64(
senhuang42 [Thu, 7 Jan 2021 17:07:35 +0000 (12:07 -0500)]
Add streaming decompression to unit test
senhuang42 [Thu, 7 Jan 2021 16:53:35 +0000 (11:53 -0500)]
Address comments, clean up interface/internals
senhuang42 [Mon, 28 Dec 2020 21:43:04 +0000 (16:43 -0500)]
Add unit test, improve documentation
senhuang42 [Mon, 28 Dec 2020 18:14:58 +0000 (13:14 -0500)]
Use XXHash for hash function, create a sensible public interface
senhuang42 [Mon, 28 Dec 2020 16:59:58 +0000 (11:59 -0500)]
Add debuglog statements
senhuang42 [Mon, 28 Dec 2020 15:40:29 +0000 (10:40 -0500)]
Reference requested dict ID at decompression time
senhuang42 [Wed, 23 Dec 2020 21:33:57 +0000 (16:33 -0500)]
Allocate memory for DDict hash set when parameter is set
senhuang42 [Wed, 23 Dec 2020 21:09:31 +0000 (16:09 -0500)]
Add parameter to control multiple DDicts
senhuang42 [Wed, 23 Dec 2020 20:46:22 +0000 (15:46 -0500)]
Implement hashset for dictIDs
Yann Collet [Thu, 7 Jan 2021 01:54:07 +0000 (17:54 -0800)]
The CLI can be linked to libzstd dynamic library
invoking target zstd-dll
Yann Collet [Thu, 7 Jan 2021 00:19:42 +0000 (16:19 -0800)]
removed CLI dependency to legacy unsafe function
makint the CLI ons step closer to being linkable to the dynamic library
Yann Collet [Wed, 6 Jan 2021 23:37:46 +0000 (15:37 -0800)]
removed redundant tests
clang v3.8 tests are either flacky or redundant,
prefer using clang-latest.
Yann Collet [Wed, 6 Jan 2021 23:30:05 +0000 (15:30 -0800)]
Merge pull request #2454 from facebook/cycleLog_noDeps
removed internal library dependency from CLI
Yann Collet [Wed, 6 Jan 2021 09:35:52 +0000 (01:35 -0800)]
removed internal dependency from CLI
ZSTD_cycleLog() is a very short function,
creating a rather large dependency onto libzstd's internal just for it is overkill.
Prefer duplicating this 2-lines function.
This PR makes the zstd CLI one step closer to being linkable to the dynamic library (see #2450)
More steps are still needed to reach this goal.
Nick Terrell [Tue, 5 Jan 2021 03:27:30 +0000 (22:27 -0500)]
Merge pull request #2451 from terrelln/adjust-dict-2
Don't shrink window log when streaming with a dictionary
Nick Terrell [Mon, 4 Jan 2021 23:51:23 +0000 (15:51 -0800)]
Don't shrink window log in ZSTD_getCParams()
Treat ZSTD_getCParams() and ZSTD_adjustCParams() in the same way
we treat streaming compression. Choose parameters based on the
dictionary size + source size, and assume the source size is small
if unkown. But, don't shrink the window log down in
ZSTD_adjustCParams_internal().
Nick Terrell [Mon, 4 Jan 2021 21:43:47 +0000 (13:43 -0800)]
Don't shrink window log when streaming with a dictionary
Fixes #2442.
1. When creating a dictionary keep the same behavior as before.
Assume the source size is 513 bytes when adjusting parameters.
2. When calling ZSTD_getCParams() or ZSTD_adjustCParams() keep
the same behavior as before.
3. When attaching a dictionary keep the same behavior of ignoring
the dictionary size. When streaming this will select the
largest parameters and not adjust them down. But, the CDict
will use the correctly sized parameters, which seems like the
right tradeoff.
4. When not attaching a dictionary (either forced not to, or
using a prefix dictionary) we select parameters based on the
dictionary size + source size, and assume the source size is
small, which is the same behavior as before. But, now we don't
adjust the window log (and hash and chain log) down when the
source size is unknown.
When the source size is unknown all cdicts should attach, except
when the user disables attaching, or `forceWindow` is used. This
means that when streaming with a CDict we end up in the good case
where we get small CDict parameters, and large source parameters.
TODO: Add a streaming + dictionary regression test case.
Nick Terrell [Mon, 4 Jan 2021 23:04:29 +0000 (15:04 -0800)]
[test][regression] Add no source size with dictionary test
* Add a test that runs without a pledgedSrcSize and with a dictionary.
* Add github.tar data with uses the github dictionary while compressing
github.tar, instead of each file individually.
Nick Terrell [Mon, 4 Jan 2021 23:23:18 +0000 (18:23 -0500)]
Merge pull request #2452 from terrelln/2021
[license] Update year to 2021
Nick Terrell [Mon, 4 Jan 2021 22:53:52 +0000 (17:53 -0500)]
[license] Update year to 2021
Yann Collet [Sun, 3 Jan 2021 18:41:55 +0000 (10:41 -0800)]
Merge pull request #2445 from facebook/nomsanfuzz
remove flackey msan ossfuzz test
Yann Collet [Tue, 29 Dec 2020 19:45:42 +0000 (11:45 -0800)]
Merge branch 'dev' into nomsanfuzz
Yann Collet [Tue, 29 Dec 2020 19:44:37 +0000 (11:44 -0800)]
fixed one more minor cast issue
can't use address calculation with `void*`
Yann Collet [Mon, 28 Dec 2020 22:08:45 +0000 (14:08 -0800)]
Merge branch 'dev' into nomsanfuzz
Yann Collet [Mon, 28 Dec 2020 22:07:31 +0000 (14:07 -0800)]
fixed minor warnings introduced in #2439
Yann Collet [Mon, 28 Dec 2020 19:22:07 +0000 (11:22 -0800)]
Merge pull request #2439 from senhuang42/skippable_frame_api
Generate skippable frame API
Yann Collet [Mon, 28 Dec 2020 19:19:58 +0000 (11:19 -0800)]
Merge pull request #2444 from indygreg/dict-ifndef-guards
Add ifndef guards for _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE
Yann Collet [Mon, 28 Dec 2020 19:18:58 +0000 (11:18 -0800)]
remove flackey msan ossfuzz test
while waiting for it to be fixed
Gregory Szorc [Sat, 26 Dec 2020 17:00:53 +0000 (10:00 -0700)]
Add ifndef guards for _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE
This ensures the symbols aren't redefined, which would result in a compiler
error.
I was getting redefined symbols for _LARGEFILE64_SOURCE when building for
32-bit x86 Linux on an older CentOS release in a CI environment. With this
change, I'm able to compile the single file library in this environment.
Closes #2443.
Yann Collet [Tue, 22 Dec 2020 08:31:38 +0000 (00:31 -0800)]
Merge pull request #2438 from facebook/makej
try to keep libzstd.a "as is" once created
Yann Collet [Tue, 22 Dec 2020 00:26:50 +0000 (16:26 -0800)]
Merge pull request #2440 from facebook/fixga32
try to fix 32-bit test on github actions
Yann Collet [Mon, 21 Dec 2020 23:47:20 +0000 (15:47 -0800)]
try to fix 32-bit test on github actions
for some reasons, this test fails at _installing_ 32-bit dependencies
using the exact same command that actually works in other tests !!?
It's unclear why it fails repeateadly for this test only.
Try another way to install dependencies to fix that.
Yann Collet [Mon, 21 Dec 2020 23:43:14 +0000 (15:43 -0800)]
try to fix cross-compiler tests
Yann Collet [Mon, 21 Dec 2020 17:13:33 +0000 (09:13 -0800)]
Merge pull request #2437 from facebook/zlibwrap_make
streamline zlibwrapper makefile
senhuang42 [Mon, 21 Dec 2020 16:33:41 +0000 (11:33 -0500)]
Use pre-defined constants
senhuang42 [Mon, 21 Dec 2020 16:33:27 +0000 (11:33 -0500)]
Add unit test
senhuang42 [Mon, 21 Dec 2020 16:13:22 +0000 (11:13 -0500)]
Implement skippable frame function
Yann Collet [Mon, 21 Dec 2020 05:44:40 +0000 (21:44 -0800)]
fix ppc64 build on circleci
Yann Collet [Mon, 21 Dec 2020 05:31:58 +0000 (21:31 -0800)]
verbose cross-compile tests on circleci
for better diagnosis
Yann Collet [Mon, 21 Dec 2020 02:29:36 +0000 (18:29 -0800)]
updated clang+msan test
Yann Collet [Mon, 21 Dec 2020 01:53:04 +0000 (17:53 -0800)]
fixed zstd+sanitizer build
Yann Collet [Mon, 21 Dec 2020 01:19:23 +0000 (17:19 -0800)]
fixed zstd recipe
Yann Collet [Mon, 21 Dec 2020 01:10:57 +0000 (17:10 -0800)]
try to keep libzstd.a "as is" once created
to be compatible with scenarios such as
`make -j allmost`
Yann Collet [Sun, 20 Dec 2020 23:03:59 +0000 (15:03 -0800)]
streamlined github action test
Yann Collet [Sun, 20 Dec 2020 17:23:07 +0000 (09:23 -0800)]
streamline zlibwrapper makefile
making better usage of default build rules
Yann Collet [Fri, 18 Dec 2020 23:52:11 +0000 (15:52 -0800)]
updated version number to v1.4.8
Yann Collet [Fri, 18 Dec 2020 23:39:12 +0000 (15:39 -0800)]
Merge pull request #2434 from facebook/wksp_align4
added emphasis on the alignment condition of workspace
Yann Collet [Fri, 18 Dec 2020 23:04:09 +0000 (15:04 -0800)]
added emphasis on the alignment condition of workspace
and made it a programming mistake (`assert()`)
rather than a runtime error.
Yann Collet [Fri, 18 Dec 2020 23:03:10 +0000 (15:03 -0800)]
Merge pull request #2433 from facebook/travisless
Reduce workload on travisCI
Yann Collet [Fri, 18 Dec 2020 20:50:36 +0000 (12:50 -0800)]
removed duplicated release-only tests
from travisCI
as they are already part of Github Actions
Yann Collet [Fri, 18 Dec 2020 19:01:22 +0000 (11:01 -0800)]
removed tests duplicated between TravisCI and Github Actions
reduce load on TravisCI
Yann Collet [Fri, 18 Dec 2020 02:00:21 +0000 (18:00 -0800)]
Merge pull request #2432 from facebook/check32
added runtime test in CI for 32-bit binaries
Yann Collet [Thu, 17 Dec 2020 23:45:22 +0000 (15:45 -0800)]
Merge branch 'check32' of github.com:facebook/zstd into check32
Yann Collet [Thu, 17 Dec 2020 23:44:54 +0000 (15:44 -0800)]
removing tests using too much resources for 32-bit address space
Yann Collet [Thu, 17 Dec 2020 23:24:56 +0000 (15:24 -0800)]
Merge pull request #2430 from terrelln/huf-compress-weights-fix
Fix alignment of scratchBuffer in HUF_compressWeights()
Yann Collet [Thu, 17 Dec 2020 23:05:26 +0000 (15:05 -0800)]
added pre-requisites for 32-bit tests in CI
Yann Collet [Thu, 17 Dec 2020 23:01:04 +0000 (15:01 -0800)]
additional master->release switches (CI tests)
Yann Collet [Thu, 17 Dec 2020 22:53:36 +0000 (14:53 -0800)]
added a simple runtime test in CI for 32-bit binaries
Nick Terrell [Thu, 17 Dec 2020 22:27:53 +0000 (14:27 -0800)]
Fix alignment of scratchBuffer in HUF_compressWeights()
The scratch buffer must be 4-byte aligned. This causes test failures in
32-bit systems, where the stack isn't aligned.
Fixes Issue #2428.
Yann Collet [Thu, 17 Dec 2020 07:53:13 +0000 (23:53 -0800)]
removed incorrect test
Yann Collet [Thu, 17 Dec 2020 07:00:35 +0000 (23:00 -0800)]
moving all references to `release` branch
was previously `master`
Yann Collet [Wed, 16 Dec 2020 23:00:18 +0000 (15:00 -0800)]
Merge pull request #2426 from facebook/changelog147
Updated CHANGELOG for v1.4.7
Yann Collet [Wed, 16 Dec 2020 22:59:31 +0000 (14:59 -0800)]
Merge pull request #2427 from facebook/example_compile
streamlined example recipe
Yann Collet [Wed, 16 Dec 2020 04:53:05 +0000 (20:53 -0800)]
updated version number to v1.4.7
and updated doc
Yann Collet [Tue, 15 Dec 2020 10:06:01 +0000 (02:06 -0800)]
streamlined example recipe
better use of default rules
Yann Collet [Tue, 15 Dec 2020 08:27:32 +0000 (00:27 -0800)]
added api issues reported by @animalize
Yann Collet [Tue, 15 Dec 2020 02:45:57 +0000 (18:45 -0800)]
Updated CHANGELOG for v1.4.7
Yann Collet [Tue, 15 Dec 2020 00:22:09 +0000 (16:22 -0800)]
Merge pull request #2424 from ihsinme/patch-1
fix Integer Overflow
Yann Collet [Tue, 15 Dec 2020 00:21:52 +0000 (16:21 -0800)]
Merge pull request #2425 from animalize/changelog_date
add release dates to CHANGELOG
Yann Collet [Tue, 15 Dec 2020 00:14:07 +0000 (16:14 -0800)]
Merge pull request #2420 from terrelln/huf-comment
[huf_compress] Refactor and comment HUF_buildCTable()
animalize [Mon, 14 Dec 2020 02:27:35 +0000 (10:27 +0800)]
add release dates to CHANGELOG
ihsinme [Sun, 13 Dec 2020 09:08:31 +0000 (12:08 +0300)]
fix Integer Overflow
Yann Collet [Fri, 11 Dec 2020 03:04:11 +0000 (19:04 -0800)]
Merge pull request #2423 from facebook/no-ln
replace links by actual copies
Nick Terrell [Fri, 11 Dec 2020 00:14:34 +0000 (16:14 -0800)]
Merge pull request #2411 from terrelln/cmake-fixes
[cmake] Fix source directory with spaces
Yann Collet [Thu, 10 Dec 2020 22:31:35 +0000 (14:31 -0800)]
refinement : only copy if binary is different
Nick Terrell [Thu, 10 Dec 2020 21:33:34 +0000 (13:33 -0800)]
[CI][cmake] Disable --test-large-data and shorten fuzzing time to 2 mins
Yann Collet [Thu, 10 Dec 2020 21:25:08 +0000 (13:25 -0800)]
replace final links by direct copy
link can behave slightly differently from real binaries,
breaking a few scripts relying on "real binary" assumption.
Nick Terrell [Mon, 7 Dec 2020 20:08:29 +0000 (12:08 -0800)]
[tests] Fix playTests.sh with spaces in path
Nick Terrell [Mon, 7 Dec 2020 19:55:44 +0000 (11:55 -0800)]
[cmake] Quote environment variables for tests
Fix the quoting for the invocation of `playtests.sh`.
Nick Terrell [Mon, 7 Dec 2020 04:13:37 +0000 (20:13 -0800)]
[cmake] Fix pkgconfig quoting
The pkgconfig file generation didn't correctly escape the paths. It both
quoted and escaped spaces with `\`, which doesn't work. The fix is to
remove the quoting.
Nick Terrell [Thu, 3 Dec 2020 01:08:36 +0000 (17:08 -0800)]
[CI] Add cmake test for source dirs with spaces
Felix Handte [Thu, 10 Dec 2020 06:20:51 +0000 (01:20 -0500)]
Merge pull request #2422 from felixhandte/doc-update-repcodes
Update Zstd Compression Format to Clarify Repcode Behavior
W. Felix Handte [Thu, 10 Dec 2020 01:00:48 +0000 (20:00 -0500)]
Update Zstd Compression Format to Clarify Repcode Behavior