]>
git.ipfire.org Git - thirdparty/zstd.git/log
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: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
Felix Handte [Wed, 9 Dec 2020 23:58:17 +0000 (18:58 -0500)]
Merge pull request #2421 from felixhandte/pc-no-sed
Don't Use Regexes to Build Pkg-Config File
Felix Handte [Wed, 9 Dec 2020 21:50:52 +0000 (16:50 -0500)]
Merge pull request #2419 from felixhandte/asan-dont-poison-static-allocs
Don't ASAN-Poison Statically-Allocated Workspaces
W. Felix Handte [Wed, 9 Dec 2020 19:56:12 +0000 (14:56 -0500)]
Create Enum to Represent Static/Dynamic Allocation Distinction in cwksp
W. Felix Handte [Tue, 8 Dec 2020 16:54:57 +0000 (11:54 -0500)]
Don't ASAN-Poison Statically-Allocated Workspaces
Addresses #2286.
W. Felix Handte [Wed, 9 Dec 2020 01:46:02 +0000 (20:46 -0500)]
Apply Same Strategy to CMake
W. Felix Handte [Wed, 9 Dec 2020 01:10:05 +0000 (20:10 -0500)]
Avoid Use of Regexes in Building Package-Config File
Nick Terrell [Tue, 8 Dec 2020 21:53:22 +0000 (13:53 -0800)]
[huf_compress] Refactor and comment HUF_buildCTable()
Comment and refactor `HUF_buildCTable()` and the helper functions
it calls as I read and understand the code. Hopefully this refactor
makes the code a bit more clear.
sen [Tue, 8 Dec 2020 17:50:23 +0000 (12:50 -0500)]
Merge pull request #2418 from senhuang42/fix_paramgrill_warnings
Fix various paramgrill conversion warnings
senhuang42 [Tue, 8 Dec 2020 15:07:28 +0000 (10:07 -0500)]
Fix various conversion warnings
sen [Mon, 7 Dec 2020 13:46:27 +0000 (08:46 -0500)]
Merge pull request #2408 from senhuang42/seekable_hang_fix
Remove possibility of hanging when using seekable decompression
Yann Collet [Sat, 5 Dec 2020 19:17:53 +0000 (11:17 -0800)]
Merge pull request #2417 from bimbashrestha/icc-fix
[build] Fix icc build. Using updated ubuntu packages
Bimba Shrestha [Sat, 5 Dec 2020 15:42:44 +0000 (09:42 -0600)]
Using add-apt-repository instead and installing intel-basekit/hpckit
Yann Collet [Sat, 5 Dec 2020 05:38:39 +0000 (21:38 -0800)]
Merge pull request #2413 from senhuang42/paramgrill_windows
Paramgrill for windows
Yann Collet [Sat, 5 Dec 2020 05:30:57 +0000 (21:30 -0800)]
Merge pull request #2415 from facebook/fix_aliasing
fix gcc-10 strict aliasing warnings
Yann Collet [Sat, 5 Dec 2020 04:25:01 +0000 (20:25 -0800)]
fix gcc-10 aliasing warning in zlib_wrapper
Yann Collet [Sat, 5 Dec 2020 03:21:40 +0000 (19:21 -0800)]
fix aliasing warning in decodecorpus
Nick Terrell [Sat, 5 Dec 2020 01:09:30 +0000 (17:09 -0800)]
Merge pull request #2412 from animalize/dict_compressionlevel
use ZSTD_CLEVEL_DEFAULT in zdict.c
Yann Collet [Sat, 5 Dec 2020 00:43:19 +0000 (16:43 -0800)]
fix gcc-10 strict aliasing warnings
by exposing HUF_CElt declaration.
Yann Collet [Sat, 5 Dec 2020 00:33:39 +0000 (16:33 -0800)]
minor speed improvement to HUF_readCTable()
faster by ~+1-2%
Nick Terrell [Sat, 5 Dec 2020 00:30:08 +0000 (16:30 -0800)]
Merge pull request #2414 from terrelln/mt-progress
[lib] Ensure that multithreaded compression always makes some progress
Nick Terrell [Fri, 4 Dec 2020 04:25:14 +0000 (20:25 -0800)]
[lib] Ensure that multithreaded compression always makes some progress
Nick Terrell [Fri, 4 Dec 2020 01:48:25 +0000 (17:48 -0800)]
Merge pull request #2410 from terrelln/zlib-wrapper
[zlibWrapper] Only use public zstd functions
senhuang42 [Thu, 3 Dec 2020 15:39:16 +0000 (10:39 -0500)]
Allow paramgrill in cmake on windows
senhuang42 [Thu, 3 Dec 2020 15:36:45 +0000 (10:36 -0500)]
Fix MSVC 2019 warnings
senhuang42 [Thu, 3 Dec 2020 14:25:45 +0000 (09:25 -0500)]
Add seekable tests to CI
senhuang42 [Thu, 3 Dec 2020 13:54:21 +0000 (08:54 -0500)]
Clean up makefile for seekable tests
animalize [Thu, 3 Dec 2020 04:44:46 +0000 (12:44 +0800)]
use ZSTD_CLEVEL_DEFAULT in zdict.c
Nick Terrell [Thu, 3 Dec 2020 00:49:03 +0000 (16:49 -0800)]
Merge pull request #2406 from terrelln/linux-wrapper-api
[linux] Add the linux wrapper API