]>
git.ipfire.org Git - thirdparty/zstd.git/log
Nick Terrell [Thu, 7 Nov 2019 01:41:29 +0000 (17:41 -0800)]
Fix parameter selection and adjustment with srcSize == 0
Yann Collet [Wed, 6 Nov 2019 23:46:58 +0000 (15:46 -0800)]
added target zstd-dictBuilder
check that the dictBuilder can be compiled
with only lib/common and lib/compress as dependencies.
Felix Handte [Wed, 6 Nov 2019 21:56:37 +0000 (16:56 -0500)]
Merge pull request #1873 from felixhandte/make-overlap-log-multithread-only
Fix #1861: Restrict overlapLog Parameter When Not Built With Multithreading
Felix Handte [Wed, 6 Nov 2019 21:56:14 +0000 (16:56 -0500)]
Merge pull request #1843 from moozzyk/issue-1637
Take ZSTD_parameters as a const pointer
Felix Handte [Wed, 6 Nov 2019 21:54:03 +0000 (16:54 -0500)]
Merge pull request #1869 from bket/openbsd
'head -c BYTES' is non-portable.
Felix Handte [Wed, 6 Nov 2019 21:52:24 +0000 (16:52 -0500)]
Merge pull request #1870 from bket/portable
'date -r FILE' is non-portable.
W. Felix Handte [Wed, 6 Nov 2019 21:05:02 +0000 (16:05 -0500)]
Fix #1861: Restrict overlapLog Parameter When Not Built With Multithreading
This parameter is unused in single-threaded compression. We should make it
behave like the other multithread-only parameters, for which we only accept
zero when we are not built with multithreading.
Björn Ketelaars [Wed, 6 Nov 2019 11:16:02 +0000 (12:16 +0100)]
'date -r FILE' is non-portable.
date(1) is used to display the last modification time of a file, which
is not supported on OpenBSD, FreeBSD and Darwin. Instead use stat(1).
Tested on OpenBSD.
Björn Ketelaars [Wed, 6 Nov 2019 10:39:59 +0000 (11:39 +0100)]
'head -c BYTES' is non-portable.
Similar to #1321: The '-c' option for 'head' is non-portable (not in
POSIX).
Yann Collet [Tue, 5 Nov 2019 20:24:54 +0000 (12:24 -0800)]
Merge pull request #1867 from bimbashrestha/dict_load_fuzz_err
[clean up] Replacing some literals with constants in zstd_compress_literals.c
Bimba Shrestha [Tue, 5 Nov 2019 18:26:57 +0000 (10:26 -0800)]
Replacing some literals with constants
Bimba Shrestha [Mon, 4 Nov 2019 19:23:44 +0000 (11:23 -0800)]
Merge pull request #15 from facebook/dev
Merging facebook/dev into bimbashrestha/dev
Yann Collet [Mon, 4 Nov 2019 18:59:59 +0000 (10:59 -0800)]
update table benchmark with zstd v1.4.4
Nick Terrell [Sat, 2 Nov 2019 03:01:12 +0000 (20:01 -0700)]
Merge pull request #1864 from terrelln/dict-fix
Fix 2 bugs in dictionary loading
Nick Terrell [Fri, 1 Nov 2019 22:33:39 +0000 (15:33 -0700)]
Fix 2 bugs in dictionary loading
* Silently skip dictionaries less than 8 bytes, unless using `ZSTD_dct_fullDict`.
This changes the compressor, which silently skips dictionaries <= 8 bytes.
* Allow repcodes that are equal to the dictionary content size, since it is in bounds.
Nick Terrell [Fri, 1 Nov 2019 22:16:24 +0000 (15:16 -0700)]
[fuzz] Add dictionary_loader fuzzer
* Adds the fuzzer
* Adds an additional `InputType` for the fuzzer
I ran the fuzzer for about 10 minutes and it found 2 bugs:
* Catches the original bug without any help
* Catches an additional bug with 8-byte dictionaries
Yann Collet [Thu, 31 Oct 2019 17:47:06 +0000 (10:47 -0700)]
fixed zlibwrapper build script
Yann Collet [Wed, 30 Oct 2019 23:27:58 +0000 (16:27 -0700)]
Merge pull request #1860 from senhuang42/streaming_compression_using_cdict
Disable reloading dictionary when there is no known srcSize
Sen Huang [Wed, 30 Oct 2019 20:03:58 +0000 (16:03 -0400)]
Make sure contentsize is known
Felix Handte [Wed, 30 Oct 2019 19:43:11 +0000 (15:43 -0400)]
Merge pull request #1857 from 0x123456789A/link-shared
Add CMake flag for linking programs dynamically
Yann Collet [Wed, 30 Oct 2019 19:18:58 +0000 (12:18 -0700)]
Merge pull request #1850 from bimbashrestha/named_pipes
Gating named pipe support on windows
Yann Collet [Wed, 30 Oct 2019 19:16:45 +0000 (12:16 -0700)]
updated CHANGELOG for v1.4.4
Yann Collet [Wed, 30 Oct 2019 19:14:41 +0000 (12:14 -0700)]
Merge pull request #1855 from shashank0791/shtavi-filter-precompressed-files
Added "--exclude-compressed" flag feature
Shashank Tavildar [Tue, 29 Oct 2019 22:59:20 +0000 (15:59 -0700)]
Removed the optimization check
Shashank Tavildar [Tue, 29 Oct 2019 20:36:09 +0000 (13:36 -0700)]
Changed extension comparision logic, added new test cases
Shashank Tavildar [Tue, 29 Oct 2019 19:56:04 +0000 (12:56 -0700)]
Added check to perform comparison only if extension is present
Shashank Tavildar [Tue, 29 Oct 2019 19:27:54 +0000 (12:27 -0700)]
Created utility function to extract extension from filename, fixed tests
Shashank Tavildar [Tue, 29 Oct 2019 16:54:54 +0000 (09:54 -0700)]
Deleting test directory before creation to pass travis-ci test
Bimba Shrestha [Tue, 29 Oct 2019 16:46:28 +0000 (09:46 -0700)]
Merge branch 'named_pipes' of https://github.com/bimbashrestha/zstd into named_pipes
Bimba Shrestha [Tue, 29 Oct 2019 16:45:28 +0000 (09:45 -0700)]
Removing merge side effect
0x123456789A [Tue, 29 Oct 2019 13:41:32 +0000 (14:41 +0100)]
Fixed check for building programs statically
0x123456789A [Tue, 29 Oct 2019 13:33:50 +0000 (14:33 +0100)]
Consider ZSTD_PROGRAMS_LINK_SHARED
Actually consider ZSTD_PROGRAMS_LINK_SHARED in programs CMakeLists
0x123456789A [Tue, 29 Oct 2019 13:31:02 +0000 (14:31 +0100)]
Introduce ZSTD_PROGRAMS_LINK_SHARED
The CMake variable ZSTD_PROGRAMS_LINK_SHARED indicactes wether or not to link the zstd programs dynamically or statically.
Shashank Tavildar [Tue, 29 Oct 2019 05:24:01 +0000 (22:24 -0700)]
Minor fixes in test
Bimba Shrestha [Tue, 29 Oct 2019 05:17:13 +0000 (01:17 -0400)]
Merge branch 'dev' into named_pipes
Bimba Shrestha [Tue, 29 Oct 2019 05:09:34 +0000 (22:09 -0700)]
Removing Visual08 and Visual10 tests
Nick Terrell [Tue, 29 Oct 2019 04:44:22 +0000 (21:44 -0700)]
Merge pull request #1856 from terrelln/assert-fix
Fix assert in ZSTD_safecopy
Shashank Tavildar [Tue, 29 Oct 2019 01:21:47 +0000 (18:21 -0700)]
Addressing comments, removing cyclic dependency with header file, updating tests
Nick Terrell [Tue, 29 Oct 2019 00:51:17 +0000 (17:51 -0700)]
Fix assert in ZSTD_safecopy
In the case that `op >= oend_w` it is possible that `diff < 8` because
the two buffers could be adjacent.
Credit to OSS-Fuzz, which found the bug. It isn't reproducible because
it depends on the memory layout.
Shashank Tavildar [Mon, 28 Oct 2019 22:22:26 +0000 (15:22 -0700)]
Fixing tests and moving flag to advanced usage
Shashank Tavildar [Mon, 28 Oct 2019 22:15:13 +0000 (15:15 -0700)]
Resolving local merge conflicts
Shashank Tavildar [Mon, 28 Oct 2019 21:54:54 +0000 (14:54 -0700)]
Addressing comments: -Created a list of extensions defined in fileio.h, -Updated test
Shashank Tavildar [Fri, 25 Oct 2019 22:49:11 +0000 (15:49 -0700)]
Added --exclude-compressed flag feature that skips compression of precompressed files
Yann Collet [Mon, 28 Oct 2019 19:57:23 +0000 (12:57 -0700)]
Merge branch 'dev' of github.com:facebook/zstd into dev
Yann Collet [Mon, 28 Oct 2019 19:57:05 +0000 (12:57 -0700)]
updated CHANGELOG for v1.4.4
Felix Handte [Mon, 28 Oct 2019 18:24:56 +0000 (14:24 -0400)]
Merge pull request #1851 from felixhandte/pkg-config-prefix-fix
In pkg-config File, Derive Lib and Include Dir from Prefix at Use-Time
Yann Collet [Mon, 28 Oct 2019 18:15:41 +0000 (11:15 -0700)]
updated API inline doc and manual
regarding ZSTD_CDict created without a dictBuffer.
Yann Collet [Mon, 28 Oct 2019 17:08:20 +0000 (10:08 -0700)]
Merge pull request #1848 from felixhandte/tzst-ext-tmp
Support Decompressing Short Tar Extensions
Yann Collet [Sat, 26 Oct 2019 00:42:42 +0000 (17:42 -0700)]
Merge pull request #1847 from facebook/zlibwrap_visual
fix zlibWrapper for Visual Studio
Shashank Tavildar [Fri, 25 Oct 2019 22:49:11 +0000 (15:49 -0700)]
Added --exclude-compressed flag feature that skips compression of precompressed files
Bimba Shrestha [Fri, 25 Oct 2019 22:43:41 +0000 (15:43 -0700)]
Merge branch 'master' of https://github.com/bimbashrestha/zstd into named_pipes
Bimba Shrestha [Fri, 25 Oct 2019 22:15:28 +0000 (15:15 -0700)]
Gating named pipe support in hedaer file
Bimba Shrestha [Fri, 25 Oct 2019 21:06:50 +0000 (14:06 -0700)]
Cleaning up gate and adding comment to flag
W. Felix Handte [Fri, 25 Oct 2019 19:05:20 +0000 (15:05 -0400)]
In pkg-config File, Derive Lib and Include Dir from Prefix at Use-Time
Addresses #1794. Instead of deriving the lib dir and include dir at
build-time, let's do it like everyone else does at pkg-config run-time.
This has the disadvantage that we can no longer override LIBDIR and
INCLUDEDIR in the Makefile and have that reflected in the .pc file.
Bimba Shrestha [Fri, 25 Oct 2019 19:07:05 +0000 (12:07 -0700)]
Merge pull request #8 from bimbashrestha/appveyorTest
Appveyor test
Bimba Shrestha [Fri, 25 Oct 2019 19:04:54 +0000 (12:04 -0700)]
Running playtests.sh on PRs too
Bimba Shrestha [Fri, 25 Oct 2019 18:32:38 +0000 (11:32 -0700)]
Gating named file support on windows
W. Felix Handte [Fri, 25 Oct 2019 17:58:58 +0000 (13:58 -0400)]
Minor Fixes
Yann Collet [Fri, 25 Oct 2019 16:59:00 +0000 (09:59 -0700)]
Merge pull request #1845 from facebook/zbuff
improve deprecation warning macro
W. Felix Handte [Fri, 25 Oct 2019 00:19:10 +0000 (20:19 -0400)]
Add Tests
W. Felix Handte [Fri, 25 Oct 2019 00:18:57 +0000 (20:18 -0400)]
Fix Build; Refactor
Yann Collet [Thu, 24 Oct 2019 22:19:05 +0000 (15:19 -0700)]
fix zlibWrapper for Visual Studio
As per https://github.com/facebook/zstd/issues/1800#issuecomment-
545945050 ,
Visual does not support `ssize_t` type,
which is an issue for `gzread.c`.
Added a work around, suggested by @bluenlive
Note : I have not been able to confirm the problem,
so this is a blind fix.
This seems safe outside of Visual, since it is gated by _MSC_VER macro.
Felix Handte [Thu, 24 Oct 2019 21:50:22 +0000 (17:50 -0400)]
Merge pull request #1790 from stokito/tzst-ext
Add short tar's extensions .tgz (.tar.gz), .txz (.tar.xz), .tzst (.tar.zst)
Felix Handte [Thu, 24 Oct 2019 21:49:34 +0000 (17:49 -0400)]
Merge branch 'tzst-ext-tmp' into tzst-ext
Yann Collet [Thu, 24 Oct 2019 19:58:50 +0000 (12:58 -0700)]
Merge pull request #1841 from bimbashrestha/travis
Adding arm64 make check to travis.ci
Yann Collet [Thu, 24 Oct 2019 17:53:12 +0000 (10:53 -0700)]
Merge pull request #1839 from bimbashrestha/named_pipes
Allowing named pipes to go through in zstdcli
Yann Collet [Wed, 23 Oct 2019 19:04:40 +0000 (12:04 -0700)]
Merge pull request #1824 from senhuang42/new_path_for_cdict
Avoid using CDict params when input is large.
Yann Collet [Wed, 23 Oct 2019 18:59:32 +0000 (11:59 -0700)]
improve deprecation warning macro
fix #1488
although, curiously enough, I was never able to reproduce the issue
(according to the bug report, it should be present while using gcc 4.8).
Bimba Shrestha [Wed, 23 Oct 2019 17:43:20 +0000 (10:43 -0700)]
Moving arm64 test outside the meson scope
moozzyk [Wed, 23 Oct 2019 06:21:54 +0000 (23:21 -0700)]
Take ZSTD_parameters as a const pointer
Fixes: #1637
Nick Terrell [Wed, 23 Oct 2019 00:58:31 +0000 (17:58 -0700)]
Merge pull request #1840 from terrelln/regression-fix
[regression] Fix the old streaming regression test
Bimba Shrestha [Wed, 23 Oct 2019 00:43:29 +0000 (17:43 -0700)]
Adding arm64 make check
Yann Collet [Wed, 23 Oct 2019 00:43:09 +0000 (17:43 -0700)]
added documentation on DYNAMIC_BMI2 build macro
Bimba Shrestha [Wed, 23 Oct 2019 00:33:12 +0000 (17:33 -0700)]
Merge pull request #4 from facebook/dev
Merging dev
Bimba Shrestha [Wed, 23 Oct 2019 00:09:44 +0000 (17:09 -0700)]
Adding shell test and removing bash test file
Yann Collet [Tue, 22 Oct 2019 23:22:55 +0000 (16:22 -0700)]
Merge pull request #1838 from facebook/fixAdvanced
fix initCStream_advanced() for fast strategies
Bimba Shrestha [Tue, 22 Oct 2019 23:15:59 +0000 (16:15 -0700)]
Adding bash test for named pipes
Nick Terrell [Tue, 22 Oct 2019 22:29:48 +0000 (15:29 -0700)]
[regression] Fix the old streaming regression test
* A copy-paste error made it so we weren't running the advanced/cdict
streaming tests with the old API.
* Clean up the old streaming tests to skip incompatible configs.
* Update `results.csv`.
The tests now catch the bug in #1787.
Bimba Shrestha [Tue, 22 Oct 2019 22:23:22 +0000 (15:23 -0700)]
Allowing named pipes to go through zstdcli
Yann Collet [Tue, 22 Oct 2019 22:19:04 +0000 (15:19 -0700)]
Merge pull request #1836 from facebook/dirFlat2
Added --output-dir-flat=
Yann Collet [Tue, 22 Oct 2019 21:57:15 +0000 (14:57 -0700)]
fix initCStream_advanced() for fast strategies
Compression ratio of fast strategies (levels 1 & 2)
was seriously reduced, due to accidental disabling of Literals compression.
Credit to @QrczakMK, which perfectly described the issue, and implementation details,
making the fix straightforward.
Example : initCStream with level 1 on synthetic sample P50 :
Before : 5,273,976 bytes
After : 3,154,678 bytes
ZSTD_compress (for comparison) : 3,154,550
Fix #1787.
To follow : refactor the test which was supposed to catch this issue (and failed)
Yann Collet [Tue, 22 Oct 2019 20:51:18 +0000 (13:51 -0700)]
update documentation on deprecated functions
mostly : note that these functions will soon generate deprecation warnings
Nick Terrell [Tue, 22 Oct 2019 17:50:14 +0000 (10:50 -0700)]
Merge pull request #1837 from terrelln/magic-isnt-real
Fix ZSTD_f_zstd1_magicless for small data
Nick Terrell [Tue, 22 Oct 2019 02:42:14 +0000 (19:42 -0700)]
Fix ZSTD_f_zstd1_magicless for small data
* Fix `ZSTD_FRAMEHEADERSIZE_PREFIX` and `ZSTD_FRAMEHEADERSIZE_MIN` to
take a `format` parameter, so it is impossible to get the wrong size.
* Fix the places that called `ZSTD_FRAMEHEADERSIZE_PREFIX` without
taking the format into account, which is now impossible by design.
* Call `ZSTD_frameHeaderSize_internal()` with `dctx->format`.
* The added tests catch both bugs in `ZSTD_decompressFrame()`.
Fixes #1813.
Sen Huang [Mon, 21 Oct 2019 23:16:50 +0000 (19:16 -0400)]
((x or y) or z) == (x or y or z), remove brackets
Sen Huang [Mon, 21 Oct 2019 23:12:15 +0000 (19:12 -0400)]
Line up comments :)
Sen Huang [Mon, 21 Oct 2019 23:10:13 +0000 (19:10 -0400)]
Trailing comma
Sen Huang [Mon, 21 Oct 2019 23:06:51 +0000 (19:06 -0400)]
Merge branch 'dev' of github.com:senhuang42/zstd into new_path_for_cdict
Sen Huang [Mon, 21 Oct 2019 23:02:52 +0000 (19:02 -0400)]
merge
Sen Huang [Mon, 21 Oct 2019 22:55:17 +0000 (18:55 -0400)]
Fix bad merge
Nick Terrell [Mon, 21 Oct 2019 22:53:57 +0000 (15:53 -0700)]
Merge pull request #1831 from terrelln/zstdmt-bad-memset
[zstdmt] Don't memset the jobDescription
Sen Huang [Mon, 21 Oct 2019 22:46:17 +0000 (18:46 -0400)]
merge
Yann Collet [Mon, 21 Oct 2019 21:33:50 +0000 (14:33 -0700)]
Added --output-dir-flat=
which is a preferred construction when applicable.
Also, added --output-dir-flat into man page.
Yann Collet [Mon, 21 Oct 2019 20:45:17 +0000 (13:45 -0700)]
Merge pull request #1834 from facebook/winFix
Windows fixes
Yann Collet [Mon, 21 Oct 2019 19:55:39 +0000 (12:55 -0700)]
turned off zlib tests during msan
since the local zlib library is not msan-instrumented
Sen Huang [Mon, 21 Oct 2019 19:29:55 +0000 (15:29 -0400)]
Added multiplier, renamed new enum to something more useful
Sen Huang [Mon, 21 Oct 2019 02:01:08 +0000 (22:01 -0400)]
Updated forceAttachDict param bounds
Sen Huang [Sun, 20 Oct 2019 23:02:47 +0000 (19:02 -0400)]
Add enum to decision process
Sen Huang [Sun, 20 Oct 2019 18:03:09 +0000 (14:03 -0400)]
Added support for forcing new CDict behavior and updated enum
Sen Huang [Wed, 16 Oct 2019 19:06:02 +0000 (15:06 -0400)]
Changed to int from BYTE