]>
git.ipfire.org Git - thirdparty/zstd.git/log
Nick Terrell [Sat, 15 Aug 2020 19:32:57 +0000 (12:32 -0700)]
[fix] Always return dstSize_tooSmall when it is the case
Yann Collet [Wed, 22 Jul 2020 16:49:34 +0000 (09:49 -0700)]
Merge pull request #2250 from facebook/twoFieldsArgs
CLI: simplified handling of separated-fields arguments
Yann Collet [Tue, 21 Jul 2020 15:23:37 +0000 (08:23 -0700)]
Merge pull request #2249 from facebook/fsefix
import some minor fixes from FSE project
Yann Collet [Tue, 21 Jul 2020 00:41:32 +0000 (17:41 -0700)]
improved 2-args macro to support both syntaxes
both `--long-commmand=arg` and `--long-command arg`
are supported by macro `NEXT_FIELD()`
so that the long-command only needs to be listed once.
This extends the syntax to support new syntaxes like
`-o=FILE` or `-D=dict`,
though there is no need to advertise this capability for the time being.
Also : added `NEXT_UINT32()`,
which is wrapper around `NEXT_FIELD()`
to read integer parameters.
Use the wrapper to new field, such as `--memlimit`
which can now support both syntaxes too.
Yann Collet [Fri, 17 Jul 2020 20:31:15 +0000 (13:31 -0700)]
added tests for newly enabled syntax
for --patch-from origin
and --filelist list
Also : removed some constrained syntax tests,
as the new argument parsing syntax is more permissive.
For example :
zstd file -of dest
used to be disallowed.
It's now allowed, and understood as:
zstd file -o dest -f
Yann Collet [Fri, 17 Jul 2020 20:09:23 +0000 (13:09 -0700)]
extended 2-fields macro usage to number arguments
leading to further simplications
Yann Collet [Fri, 17 Jul 2020 19:46:36 +0000 (12:46 -0700)]
CLI: simplified handling of separated-fields arguments
this patch reduces complexity associated with
commands requiring a separated arguments
such as :
-o filename
-D dictionary
--output-dir-flat dir
--output-dir-mirror dir
It used to be a multi-stage process with explicit context,
it's now simplified as a single macro.
Thanks to this simplification,
separated arguments logic has also been extended to
--patch-from XXX
--filelist XXX
which extends existing capability using =XXX
--patch-from=XXX
--filelist=XXX
Separated argument is useful for filenames and directories,
as it benefits from shell expansion
such as ~/dir/file
where the ~ is automatically translated by the shell.
In contrast --long-command=FILE does not interpret FILE,
so ~/ is transmitted as is to the main() function,
generally resulting in incorrect file name.
Yann Collet [Fri, 17 Jul 2020 16:16:11 +0000 (09:16 -0700)]
Merge pull request #2197 from neheb/hj
meson: remove build requirement for distutils
Yann Collet [Fri, 17 Jul 2020 16:14:20 +0000 (09:14 -0700)]
Merge pull request #2243 from facebook/uclibc
fix uclibc's st_mtim
Yann Collet [Fri, 17 Jul 2020 03:33:50 +0000 (20:33 -0700)]
ensure workspace is large enough
even when MAX_TABLELOG is reduced
Yann Collet [Fri, 17 Jul 2020 03:25:15 +0000 (20:25 -0700)]
import some minor fixes from FSE project
Felix Handte [Thu, 16 Jul 2020 16:40:43 +0000 (12:40 -0400)]
Merge pull request #2246 from ffontaine/dev
programs/util.c: fix build without st_mtime
Yann Collet [Wed, 15 Jul 2020 19:42:31 +0000 (12:42 -0700)]
Merge pull request #2247 from facebook/revert-2244-dev
Revert "Fix -Wunused-variable under FUZZING_BUILD_MODE..."
Yann Collet [Wed, 15 Jul 2020 19:42:18 +0000 (12:42 -0700)]
Revert "Fix -Wunused-variable under FUZZING_BUILD_MODE..."
Yann Collet [Wed, 15 Jul 2020 19:40:17 +0000 (12:40 -0700)]
Merge pull request #2244 from hctim/dev
Fix -Wunused-variable under FUZZING_BUILD_MODE...
Fabrice Fontaine [Wed, 15 Jul 2020 19:19:14 +0000 (21:19 +0200)]
programs/util.c: fix build without st_mtime
Since version 1.4.5 and commit
5af8cb7aea8d890b4801e50e5274371510f2cf33 , if st_mtime is not defined,
programs/util.c uses utime without including utime.h which will raise
the following build failure on some of the buildroot autobuilders:
util.c: In function 'UTIL_setFileStat':
util.c:161:24: error: storage size of 'timebuf' isn't known
struct utimbuf timebuf;
^~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/
be902c5d110f37bce622a2215191f155b7d3e7e0
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Mitch Phillips [Tue, 14 Jul 2020 15:49:43 +0000 (08:49 -0700)]
Fix -Wunused-variable under FUZZING_BUILD_MODE...
Fuzzing build modes (FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION) doesn't
necessarily imply that assert() is enabled, according to the manual.
When the current do-nothing is expanded under -Wunused-variable (-Wall),
it results in unused variables in some of the FUZZING_BUILD_MODE...
blocks.
This patch extends the do-nothing to avoid the unused variable.
Yann Collet [Mon, 13 Jul 2020 21:16:33 +0000 (14:16 -0700)]
fix uclibc's st_mtim
reported and suggested by @ewildgoose (#1872)
Nick Terrell [Mon, 13 Jul 2020 18:26:13 +0000 (14:26 -0400)]
Merge pull request #2242 from evverx/cifuzz-ubsan-msan
cifuzz: turn on UBsan and MSan
Evgeny Vereshchagin [Mon, 13 Jul 2020 01:20:11 +0000 (01:20 +0000)]
cifuzz: turn on UBsan and MSan
Yann Collet [Sat, 11 Jul 2020 09:16:52 +0000 (02:16 -0700)]
minor doc clarification regarding MT parameters
Nick Terrell [Fri, 10 Jul 2020 15:26:15 +0000 (11:26 -0400)]
Merge pull request #2239 from evverx/evverx-cifuzz
cifuzz: don't upload artifacts when CIFuzz fails to build fuzz targets
Yann Collet [Fri, 10 Jul 2020 08:21:47 +0000 (01:21 -0700)]
Merge pull request #2219 from xxie24/output-dir-mirror
Add output-dir-mirror option
Yann Collet [Fri, 10 Jul 2020 08:20:59 +0000 (01:20 -0700)]
Merge pull request #2183 from tonytheodore/patch-1
Install pkg-config file on MINGW also
Yann Collet [Thu, 9 Jul 2020 15:48:36 +0000 (08:48 -0700)]
Merge pull request #2237 from marxin/gcda-to-gitignore
Add GCC PGO data files to .gitignore.
Yann Collet [Thu, 9 Jul 2020 15:48:04 +0000 (08:48 -0700)]
Merge pull request #2236 from marxin/pgo-fix-comment
Update comment about PGO build.
Yann Collet [Thu, 9 Jul 2020 15:41:44 +0000 (08:41 -0700)]
Merge pull request #2231 from marxin/use-threads-in-example
Use threads in streaming_compression.c example.
Martin Liska [Thu, 9 Jul 2020 07:32:54 +0000 (09:32 +0200)]
Add GCC PGO data files to .gitignore.
Martin Liska [Thu, 9 Jul 2020 07:31:51 +0000 (09:31 +0200)]
Update comment about PGO build.
Martin Liska [Wed, 8 Jul 2020 10:09:00 +0000 (12:09 +0200)]
Use threads in streaming_compression.c example.
Fixes #1584.
Evgeny Vereshchagin [Thu, 9 Jul 2020 04:22:40 +0000 (04:22 +0000)]
cifuzz: don't upload artifacts when CIFuzz fails to build fuzz targets
It should address https://github.com/google/oss-fuzz/issues/3982
Yann Collet [Wed, 8 Jul 2020 18:49:40 +0000 (11:49 -0700)]
Merge pull request #2230 from cwoffenden/minor-tidy
Remove superfluous build-time macros (single-file libs)
Yann Collet [Wed, 8 Jul 2020 18:49:04 +0000 (11:49 -0700)]
Merge pull request #2235 from bimbashrestha/decom-macros
[actions] removing flakey min-decomp
Bimba Shrestha [Wed, 8 Jul 2020 18:11:45 +0000 (11:11 -0700)]
removing min decomp
Carl Woffenden [Wed, 8 Jul 2020 09:39:17 +0000 (11:39 +0200)]
Remove superfluous build-time options
Yann Collet [Tue, 7 Jul 2020 15:51:20 +0000 (08:51 -0700)]
Merge pull request #2227 from yoshihitoh/single-file-dict-emscripten
[contrib] Fix single-file compilation error on Emscripten build.
yoshihitoh [Tue, 7 Jul 2020 10:10:12 +0000 (19:10 +0900)]
Change Emscripten docker image to the official one which is used for testing the single-file feature.
Yann Collet [Mon, 6 Jul 2020 23:06:49 +0000 (16:06 -0700)]
Merge pull request #2228 from marxin/rename-ZSTDMT_NBTHREADS_MAX
Rename ZSTDMT_NBTHREADS_MAX to ZSTDMT_NBWORKERS_MAX.
Martin Liska [Mon, 6 Jul 2020 22:18:20 +0000 (00:18 +0200)]
Rename ZSTDMT_NBTHREADS_MAX to ZSTDMT_NBWORKERS_MAX.
Rename it in zstd man page.
yoshihitoh [Tue, 30 Jun 2020 16:40:15 +0000 (01:40 +0900)]
Enable docker based Emscripten build on single file library test if emcc is not available.
Nick Terrell [Tue, 30 Jun 2020 00:19:24 +0000 (17:19 -0700)]
Merge pull request #2220 from dkcasset/fix-lib-Makefile-older-sed-version
Replace -E option with equivalent -r for older versions of sed
Nick Terrell [Tue, 30 Jun 2020 00:14:50 +0000 (17:14 -0700)]
Merge pull request #2221 from BioDataAnalysis/bda_install_dll
Install MSVC runtime shared libraries (DLL) with cmake
dkcasset [Mon, 29 Jun 2020 20:44:23 +0000 (13:44 -0700)]
Add variable for sed extended RE option (defaults to -E)
Mario Emmenlauer [Mon, 29 Jun 2020 09:09:31 +0000 (11:09 +0200)]
build/cmake/lib/CMakeLists.txt: Install shared library (dll) for Windows
yoshihitoh [Mon, 29 Jun 2020 01:51:50 +0000 (10:51 +0900)]
Rename static vars to avoid redefinition error.
dkcasset [Fri, 26 Jun 2020 17:43:28 +0000 (10:43 -0700)]
Replace -E option with equivalent -r for older versions of sed
Xin Xie [Sat, 20 Jun 2020 02:35:51 +0000 (19:35 -0700)]
Add output-dir-mirror option
Nick Terrell [Tue, 23 Jun 2020 00:41:18 +0000 (17:41 -0700)]
Merge pull request #2218 from terrelln/assert-seq
Fix unused variable warnings in fuzzing build mode without asserts
Nick Terrell [Tue, 23 Jun 2020 00:41:13 +0000 (17:41 -0700)]
Merge pull request #2217 from terrelln/cover-redundant
[cover] Remove unnecessary mask and dedup hash functions
Nick Terrell [Tue, 23 Jun 2020 00:41:03 +0000 (17:41 -0700)]
Merge pull request #2209 from Niadb/dev
Explicitly use __cdecl for qsort, to avoid warning when default calling convention is not __cdecl
Nick Terrell [Mon, 22 Jun 2020 19:56:57 +0000 (12:56 -0700)]
Fix unused variable warnings in fuzzing build mode without asserts
Fix unused vairable warnings when `FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION` is defined but asserts are disabled.
Fixes #2210.
Nick Terrell [Mon, 22 Jun 2020 19:52:13 +0000 (12:52 -0700)]
[cover] Remove unnecessary mask and dedup hash functions
* Remove the unnecessary mask, since `ZSTD_hash*()` already ensures
the output is mod 2^h.
* Dedup the hash functions and use `ZSTD_hash*()` directly.
Nick Terrell [Mon, 22 Jun 2020 19:46:54 +0000 (12:46 -0700)]
Merge pull request #2212 from cwoffenden/single-file-dict
Single-file libs now include dictBuilder
Nick Terrell [Mon, 22 Jun 2020 19:27:58 +0000 (12:27 -0700)]
Merge pull request #2214 from terrelln/superblock-cross-entropy
[superblock] Add defensive assert and bounds check
Nick Terrell [Mon, 22 Jun 2020 17:21:38 +0000 (10:21 -0700)]
[superblock] Add defensive assert and bounds check
The bound check condition should always be met because we selected `set_basic` as
our encoding type. But that code is very far away, so assert it is true so if it is
ever false we can catch it, and add a bounds check.
Fixes #2213.
Carl Woffenden [Mon, 22 Jun 2020 09:54:24 +0000 (11:54 +0200)]
Renamed cover and fast cover hash functions/vars
Carl Woffenden [Mon, 22 Jun 2020 08:31:36 +0000 (10:31 +0200)]
Initial implementation (files added, macros fixed)
Hashing functions still to fix.
Niadb [Fri, 19 Jun 2020 15:51:00 +0000 (09:51 -0600)]
Update compiler.h
clean wording
Niadb [Fri, 19 Jun 2020 15:48:35 +0000 (09:48 -0600)]
Update compiler.h
Added a comment explaining the purpose of the WIN_CDECL macro
Niadb [Fri, 19 Jun 2020 09:34:05 +0000 (03:34 -0600)]
Add files via upload
Niadb [Fri, 19 Jun 2020 09:32:11 +0000 (03:32 -0600)]
Add files via upload
Niadb [Fri, 19 Jun 2020 09:31:47 +0000 (03:31 -0600)]
Add files via upload
Bimba Shrestha [Thu, 18 Jun 2020 22:18:31 +0000 (17:18 -0500)]
Merge pull request #2208 from bimbashrestha/arm-actions
[actions] adding arm to actions
Bimba Shrestha [Thu, 18 Jun 2020 18:52:40 +0000 (11:52 -0700)]
adding arm to actions
Bimba Shrestha [Thu, 18 Jun 2020 18:10:11 +0000 (13:10 -0500)]
Merge pull request #2206 from bimbashrestha/stream-size
[cli] Allowing stdin on --patch-from using --stream-size
Bimba Shrestha [Thu, 18 Jun 2020 16:36:36 +0000 (09:36 -0700)]
adding --patch-from --stream-size test
Bimba Shrestha [Thu, 18 Jun 2020 16:31:06 +0000 (09:31 -0700)]
error when not using --stream-size on pipe
Bimba Shrestha [Thu, 18 Jun 2020 16:28:18 +0000 (09:28 -0700)]
passing streamSrcSize when set
Bimba Shrestha [Tue, 16 Jun 2020 00:41:55 +0000 (19:41 -0500)]
Merge pull request #2205 from bimbashrestha/cmake
Removing de-duplication of cmake flags
Bimba Shrestha [Mon, 15 Jun 2020 21:58:53 +0000 (14:58 -0700)]
removing deduplicatin of flags
Yann Collet [Mon, 15 Jun 2020 20:04:45 +0000 (13:04 -0700)]
added paragraph on static analysis pitfalls
Nick Terrell [Mon, 15 Jun 2020 17:54:33 +0000 (10:54 -0700)]
Merge pull request #2202 from terrelln/dict-fi
[lib] Allow compression dictionaries with missing symbols
Nick Terrell [Sat, 13 Jun 2020 00:48:39 +0000 (17:48 -0700)]
[lib] Allow compression dictionaries with missing symbols
Allow compression to use dictionaries with missing symbols in their
entropy tables. We set the FSE repeat mode to check when there are
missing symbols, and set the FSE repeat mode to valid when all symbols
are present.
Note that when not all symbols are present, the heuristics which favor
dictionary tables for lower compression levels won't activate.
Tested by manually creating a dictionary with missing symbols of every
type, and validing that the compressor rejects it before this change,
and accepts it after this change. Also, I ran the `dictionary_loader`
fuzzer for >1 hour of CPU time without running into cases where
compression succeeds, but decompression fails.
Fixes #2174.
Yann Collet [Thu, 11 Jun 2020 09:04:04 +0000 (02:04 -0700)]
Merge pull request #2196 from tru/dumpversion_argument
Make --version respect -q for ouptut a shorter version string
Tobias Hieta [Thu, 11 Jun 2020 08:56:47 +0000 (10:56 +0200)]
Update version documention with the support for -q
Rosen Penev [Tue, 9 Jun 2020 23:33:16 +0000 (16:33 -0700)]
meson: remove build requirement for distutils
Tested on a default installation of Debian 10.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Tobias Hieta [Mon, 8 Jun 2020 12:06:37 +0000 (14:06 +0200)]
Short version string output
This adds support for just showing the version string
without the full welcome message if the log level is
less than the default. That means that you pass -q once
and you will just see "1.4.5".
This makes it easier to parse in scripts.
Bimba Shrestha [Fri, 5 Jun 2020 17:00:04 +0000 (12:00 -0500)]
Merge pull request #2193 from bimbashrestha/typos
Fixing some typos
Bimba Shrestha [Fri, 5 Jun 2020 08:19:30 +0000 (03:19 -0500)]
Spelling mistakes
Yann Collet [Wed, 3 Jun 2020 20:26:52 +0000 (13:26 -0700)]
Merge pull request #2190 from facebook/playTest_improvement
Check environmental variables in playTests.sh and add default values
Shaojing Li [Wed, 3 Jun 2020 18:36:38 +0000 (11:36 -0700)]
fix the if statements in posix sh env
Shaojing Li [Wed, 3 Jun 2020 17:49:21 +0000 (10:49 -0700)]
check env variables and add default values
Bimba Shrestha [Tue, 2 Jun 2020 18:07:36 +0000 (13:07 -0500)]
Merge pull request #2187 from bimbashrestha/bourne
[ci] Adding bourne shell compatibility test
Bimba Shrestha [Tue, 2 Jun 2020 17:32:12 +0000 (12:32 -0500)]
Merge pull request #2186 from bimbashrestha/dll-install
[cmake] Fix dll install location
Bimba Shrestha [Tue, 2 Jun 2020 16:15:24 +0000 (09:15 -0700)]
excluding ls | grep warning
Bimba Shrestha [Tue, 2 Jun 2020 16:12:50 +0000 (09:12 -0700)]
[shellcheck] setting if unset
Bimba Shrestha [Tue, 2 Jun 2020 16:12:13 +0000 (09:12 -0700)]
[shellcheck] adding quotes to expansion
Bimba Shrestha [Tue, 2 Jun 2020 16:08:16 +0000 (09:08 -0700)]
adding shellcheck bourne test
Bimba Shrestha [Tue, 2 Jun 2020 16:07:45 +0000 (09:07 -0700)]
newline lints (ignore)
Bimba Shrestha [Tue, 2 Jun 2020 14:45:06 +0000 (07:45 -0700)]
DLL install fix for https://github.com/facebook/zstd/issues/2160
Credit goes to @xantares
Summary:
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags:
Tony Theodore [Tue, 2 Jun 2020 08:18:40 +0000 (18:18 +1000)]
Install pkg-config file on MINGW also
Mingw follows unix conventions and often expects pkg-config files to be present.
Yann Collet [Fri, 29 May 2020 20:49:38 +0000 (13:49 -0700)]
Merge pull request #2181 from facebook/makejall
fixed double-compilation of lib with make -j all
Yann Collet [Fri, 29 May 2020 19:40:59 +0000 (12:40 -0700)]
added comment on $(Q)
Yann Collet [Fri, 29 May 2020 19:09:51 +0000 (12:09 -0700)]
fixed double-compilation of lib with make -j all
also implemented verbose mode (make V=1)
Felix Handte [Thu, 28 May 2020 17:07:18 +0000 (13:07 -0400)]
Merge pull request #2133 from felixhandte/single-size-calculation
Consolidate CCtx Size Estimation Code
Bimba Shrestha [Tue, 26 May 2020 21:30:11 +0000 (16:30 -0500)]
Merge pull request #2180 from facebook/generic-release
[actions] Migrating 2nd batch of tests from Travis to Github Actions
Yann Collet [Tue, 26 May 2020 20:15:35 +0000 (13:15 -0700)]
minor markdown formatting fix
Bimba Shrestha [Tue, 26 May 2020 20:12:00 +0000 (15:12 -0500)]
Create generic-release.yml
Bimba Shrestha [Tue, 26 May 2020 18:03:17 +0000 (13:03 -0500)]
Merge pull request #2137 from facebook/generic-dev
[actions] Migrating 1st batch of tests from Travis to Github Actions
Bimba Shrestha [Tue, 26 May 2020 17:26:22 +0000 (12:26 -0500)]
Merge pull request #2178 from bimbashrestha/quick-fix
Change --patch-from limit from 4gb to 2gb