]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
5 years agoMerge pull request #2159 from facebook/visual_playTests 2154/head
Yann Collet [Fri, 22 May 2020 03:50:50 +0000 (20:50 -0700)] 
Merge pull request #2159 from facebook/visual_playTests

Fix playTests.sh

5 years agofixed environment variables 2159/head
Yann Collet [Fri, 22 May 2020 01:06:43 +0000 (18:06 -0700)] 
fixed environment variables

5 years agoMerge branch 'dev' into visual_playTests
Yann Collet [Thu, 21 May 2020 23:45:02 +0000 (16:45 -0700)] 
Merge branch 'dev' into visual_playTests

5 years agoMerge pull request #2158 from facebook/meson_fix
Yann Collet [Thu, 21 May 2020 23:07:56 +0000 (16:07 -0700)] 
Merge pull request #2158 from facebook/meson_fix

fix meson playTests.sh

5 years agofix meson playTests.sh 2158/head
Yann Collet [Thu, 21 May 2020 21:19:28 +0000 (14:19 -0700)] 
fix meson playTests.sh

5 years agotry to fix PPC64 Qemu tests
Yann Collet [Thu, 21 May 2020 17:26:40 +0000 (10:26 -0700)] 
try to fix PPC64 Qemu tests

5 years agoMerge pull request #2155 from facebook/fix_zbufftest
Yann Collet [Thu, 21 May 2020 16:44:52 +0000 (09:44 -0700)] 
Merge pull request #2155 from facebook/fix_zbufftest

fixed zbuff test

5 years agofixed appveyor long tests
Yann Collet [Thu, 21 May 2020 05:56:25 +0000 (22:56 -0700)] 
fixed appveyor long tests

playTests changed variable name

5 years agofixed zbuff test 2155/head
Yann Collet [Thu, 21 May 2020 07:22:52 +0000 (00:22 -0700)] 
fixed zbuff test

error introduced in https://github.com/facebook/zstd/blame/3b39ce6b527c5cfe395a187c75b77baf5cc7de02/.travis.yml#L192

5 years agoMerge pull request #2153 from terrelln/ldm-dict-reset
Yann Collet [Wed, 20 May 2020 00:41:51 +0000 (17:41 -0700)] 
Merge pull request #2153 from terrelln/ldm-dict-reset

[ldm][mt] Fix loadedDictEnd

5 years ago[test] Update the ldm loadedDictEnd test to cover zstdmt 2153/head
Nick Terrell [Tue, 19 May 2020 23:14:14 +0000 (16:14 -0700)] 
[test] Update the ldm loadedDictEnd test to cover zstdmt

5 years ago[ldm][mt] Fix loadedDictEnd
Nick Terrell [Tue, 19 May 2020 22:55:03 +0000 (15:55 -0700)] 
[ldm][mt] Fix loadedDictEnd

5 years agoMerge pull request #2152 from terrelln/simple-rt-bound
Nick Terrell [Tue, 19 May 2020 19:56:11 +0000 (12:56 -0700)] 
Merge pull request #2152 from terrelln/simple-rt-bound

[fuzz] Expand the allowedExpansion

5 years ago[fuzz] Expand the allowedExpansion 2152/head
Nick Terrell [Tue, 19 May 2020 18:42:53 +0000 (11:42 -0700)] 
[fuzz] Expand the allowedExpansion

5 years agofix 22294 (#2151)
Yann Collet [Tue, 19 May 2020 04:05:10 +0000 (21:05 -0700)] 
fix 22294 (#2151)

5 years agoMerge pull request #2150 from terrelln/ldm-dict-reset
Nick Terrell [Tue, 19 May 2020 01:33:01 +0000 (18:33 -0700)] 
Merge pull request #2150 from terrelln/ldm-dict-reset

[ldm] Reset loadedDictEnd when the context is reset

5 years ago[test] Test that the ldm dictionary gets invalidated on reset 2150/head
Nick Terrell [Mon, 18 May 2020 22:11:02 +0000 (15:11 -0700)] 
[test] Test that the ldm dictionary gets invalidated on reset

5 years ago[test] Improve LDM forceMaxWindow test
Nick Terrell [Mon, 18 May 2020 19:56:34 +0000 (12:56 -0700)] 
[test] Improve LDM forceMaxWindow test

5 years agoMerge pull request #2148 from felixhandte/fix-2144
Felix Handte [Mon, 18 May 2020 19:47:17 +0000 (15:47 -0400)] 
Merge pull request #2148 from felixhandte/fix-2144

Don't Use `[[` in Shell Scripts

5 years ago[ldm] Reset loadedDictEnd when the context is reset
Nick Terrell [Mon, 18 May 2020 19:35:44 +0000 (12:35 -0700)] 
[ldm] Reset loadedDictEnd when the context is reset

5 years agoDon't Use `[[` in Shell Scripts 2148/head
W. Felix Handte [Mon, 18 May 2020 18:54:06 +0000 (14:54 -0400)] 
Don't Use `[[` in Shell Scripts

5 years agoMerge pull request #2146 from cwoffenden/combine-script-fixes
Felix Handte [Mon, 18 May 2020 15:53:28 +0000 (11:53 -0400)] 
Merge pull request #2146 from cwoffenden/combine-script-fixes

Reduced single file lib size on macOS

5 years agoMinor tidy 2146/head
Carl Woffenden [Mon, 18 May 2020 10:33:44 +0000 (12:33 +0200)] 
Minor tidy

5 years agoReduced generated sized on macOS (and other envs where realpath is missing)
Carl Woffenden [Mon, 18 May 2020 08:12:02 +0000 (10:12 +0200)] 
Reduced generated sized on macOS (and other envs where realpath is missing)

Added Python fallback for when realpath fails.

5 years agoupdated CHANGELOG for v1.4.5
Yann Collet [Sat, 16 May 2020 00:19:00 +0000 (17:19 -0700)] 
updated CHANGELOG for v1.4.5

5 years ago[fuzz] Adding dictionary_stream_round_trip fuzzer (#2140)
Bimba Shrestha [Fri, 15 May 2020 20:33:31 +0000 (15:33 -0500)] 
[fuzz] Adding dictionary_stream_round_trip fuzzer (#2140)

* Adding dictionary_stream_round_trip

* fixing memory leak

5 years agoMerge pull request #2141 from terrelln/regression
Yann Collet [Fri, 15 May 2020 00:44:58 +0000 (17:44 -0700)] 
Merge pull request #2141 from terrelln/regression

[test][regression] Update results.csv

5 years ago[test][regression] Update results.csv 2141/head
Nick Terrell [Fri, 15 May 2020 00:06:39 +0000 (17:06 -0700)] 
[test][regression] Update results.csv

5 years agoupdated documentation for v1.4.5
Yann Collet [Thu, 14 May 2020 23:17:03 +0000 (16:17 -0700)] 
updated documentation for v1.4.5

API manual and man pages

5 years agoMerge pull request #2138 from terrelln/ldm-fix
Nick Terrell [Thu, 14 May 2020 20:32:00 +0000 (13:32 -0700)] 
Merge pull request #2138 from terrelln/ldm-fix

[lib] Fix bug in loading LDM dictionary in MT mode

5 years ago[test] Expose the LDM+MT+dict bug in a unit test 2138/head
Nick Terrell [Thu, 14 May 2020 19:06:55 +0000 (12:06 -0700)] 
[test] Expose the LDM+MT+dict bug in a unit test

5 years ago[lib] Fix bug in loading LDM dictionary in MT mode
Nick Terrell [Thu, 14 May 2020 18:50:48 +0000 (11:50 -0700)] 
[lib] Fix bug in loading LDM dictionary in MT mode

Exposed when loading a dictionary < LDM minMatch bytes in MT mode.

Test Plan:
```
CC=clang make -j zstreamtest MOREFLAGS="-O0 -fsanitize=address"
./zstreamtest -vv -i100000000 -t1 --newapi -s7065 -t3925297
```

TODO: Add an explicit test that loads a small dictionary in MT mode

5 years agoMerge pull request #2135 from bimbashrestha/grep
Bimba Shrestha [Wed, 13 May 2020 21:08:59 +0000 (16:08 -0500)] 
Merge pull request #2135 from bimbashrestha/grep

Revert to old zstdgrep because of potential license issue

5 years agoreverting docs and test 2135/head
Bimba Shrestha [Wed, 13 May 2020 20:22:07 +0000 (15:22 -0500)] 
reverting docs and test

5 years agoRevert to old zstdgrep
Bimba Shrestha [Wed, 13 May 2020 20:12:14 +0000 (15:12 -0500)] 
Revert to old zstdgrep

5 years agoMerge pull request #2134 from terrelln/align-lazy
Yann Collet [Wed, 13 May 2020 03:49:10 +0000 (20:49 -0700)] 
Merge pull request #2134 from terrelln/align-lazy

[greedy] Fix performance instability

5 years ago[greedy] Fix performance instability 2134/head
Nick Terrell [Wed, 13 May 2020 00:51:16 +0000 (17:51 -0700)] 
[greedy] Fix performance instability

5 years agoMerge pull request #2131 from terrelln/raw-dict-fuzzer
Nick Terrell [Wed, 13 May 2020 00:44:31 +0000 (17:44 -0700)] 
Merge pull request #2131 from terrelln/raw-dict-fuzzer

Fix rare scenario with lazy parser, dictionary, and repcodes

5 years ago[lib] Fix assertion when dictionary is prefix 2131/head
Nick Terrell [Tue, 12 May 2020 21:33:59 +0000 (14:33 -0700)] 
[lib] Fix assertion when dictionary is prefix

5 years agoMerge pull request #2132 from bimbashrestha/grep-rm-test
Yann Collet [Tue, 12 May 2020 20:49:38 +0000 (13:49 -0700)] 
Merge pull request #2132 from bimbashrestha/grep-rm-test

[build] removing -f test (grep usage not supported on mac)

5 years agoMerge pull request #2125 from Artoria2e5/patch-2
Yann Collet [Tue, 12 May 2020 20:48:23 +0000 (13:48 -0700)] 
Merge pull request #2125 from Artoria2e5/patch-2

programs/Makefile: make it actually work with clang

5 years agoremoving -f test (grep usage not supported on mac) 2132/head
Bimba Shrestha [Tue, 12 May 2020 20:18:43 +0000 (15:18 -0500)] 
removing -f test (grep usage not supported on mac)

5 years ago[lib] Fix lazy repcode validity checks
Nick Terrell [Tue, 12 May 2020 19:25:06 +0000 (12:25 -0700)] 
[lib] Fix lazy repcode validity checks

5 years agoMerge pull request #2130 from facebook/initStatic_fix
Yann Collet [Tue, 12 May 2020 19:03:22 +0000 (12:03 -0700)] 
Merge pull request #2130 from facebook/initStatic_fix

Fix for initStatic

5 years ago[lib] Fix repcode validation in no dict mode
Nick Terrell [Tue, 12 May 2020 18:57:15 +0000 (11:57 -0700)] 
[lib] Fix repcode validation in no dict mode

5 years ago[lib] Fix dictionary + repcodes + optimal parser
Nick Terrell [Tue, 12 May 2020 05:27:34 +0000 (22:27 -0700)] 
[lib] Fix dictionary + repcodes + optimal parser

5 years ago[lib][fuzz] Assert sequences are valid in round trip tests
Nick Terrell [Tue, 12 May 2020 02:05:42 +0000 (19:05 -0700)] 
[lib][fuzz] Assert sequences are valid in round trip tests

5 years agofixed asan test 2130/head
Yann Collet [Tue, 12 May 2020 03:35:47 +0000 (20:35 -0700)] 
fixed asan test

5 years agoblindfix for VS macro redefinition
Yann Collet [Tue, 12 May 2020 02:29:36 +0000 (19:29 -0700)] 
blindfix for VS macro redefinition

5 years agoupdated documentation for ZSTD_estimate*()
Yann Collet [Tue, 12 May 2020 02:21:50 +0000 (19:21 -0700)] 
updated documentation for ZSTD_estimate*()

make it clearer that tighter memory estimation
can be provided using advanced functions
on the condition of a defined input size bound.

5 years ago[lib] Fix lazy parser with dictionary + repcodes
Nick Terrell [Tue, 12 May 2020 02:04:30 +0000 (19:04 -0700)] 
[lib] Fix lazy parser with dictionary + repcodes

5 years ago[fuzz] Add raw dictionary content fuzzer
Nick Terrell [Tue, 12 May 2020 02:03:33 +0000 (19:03 -0700)] 
[fuzz] Add raw dictionary content fuzzer

5 years ago[fuzz] Fix compress bound for dictionary_round_trip
Nick Terrell [Tue, 12 May 2020 02:00:52 +0000 (19:00 -0700)] 
[fuzz] Fix compress bound for dictionary_round_trip

5 years ago[doc] measuring performance docs (#2117)
Bimba Shrestha [Tue, 12 May 2020 01:55:01 +0000 (20:55 -0500)] 
[doc] measuring performance docs (#2117)

* performance measuring docs

* spelling

* combining advanced and simple section

* zstd benchmark title change

5 years agoMerge pull request #2124 from facebook/initStatic_tests
Yann Collet [Tue, 12 May 2020 01:54:22 +0000 (18:54 -0700)] 
Merge pull request #2124 from facebook/initStatic_tests

re-inforced tests for initStaticCCtx

5 years agoMerge pull request #2123 from facebook/zstd_help
Yann Collet [Tue, 12 May 2020 01:54:07 +0000 (18:54 -0700)] 
Merge pull request #2123 from facebook/zstd_help

updated `zstd -h`

5 years agoupdated initStatic tests
Yann Collet [Tue, 12 May 2020 01:50:10 +0000 (18:50 -0700)] 
updated initStatic tests

differentiate small CCtx for small inputs
from full CCtx
from CStream contexts.

Ensure allocation & resize tests are more precise.

5 years agofixed context downsize with initStatic
Yann Collet [Tue, 12 May 2020 01:16:38 +0000 (18:16 -0700)] 
fixed context downsize with initStatic

When context is created using initStatic,
no resize is possible.

fix : only bump oversizeDuration when !initStatic

5 years agoMerge branch 'dev' into initStatic_tests 2124/head
Yann Collet [Mon, 11 May 2020 23:51:13 +0000 (16:51 -0700)] 
Merge branch 'dev' into initStatic_tests

5 years agoMerge pull request #2129 from felixhandte/fix-cctx-size-estimate
Yann Collet [Mon, 11 May 2020 23:36:46 +0000 (16:36 -0700)] 
Merge pull request #2129 from felixhandte/fix-cctx-size-estimate

Fix ZSTD_estimateCCtxSize() Under ASAN

5 years agoFix ZSTD_estimateCCtxSize() Under ASAN 2129/head
W. Felix Handte [Mon, 11 May 2020 22:53:32 +0000 (18:53 -0400)] 
Fix ZSTD_estimateCCtxSize() Under ASAN

`ZSTD_estimateCCtxSize()` provides estimates for one-shot compression, which
is guaranteed not to buffer inputs or outputs. So it ignores the sizes of the
buffers, assuming they'll be zero. However, the actual workspace allocation
logic always allocates those buffers, and when running under ASAN, the
workspace surrounds every allocation with 256 bytes of redzone. So the 0-sized
buffers end up consuming 512 bytes of space, which is accounted for in the
actual allocation path through the use of `ZSTD_cwksp_alloc_size()` but isn't
in the estimation path, since it ignores the buffers entirely.

This commit fixes this.

5 years agoMerge pull request #2128 from terrelln/benches
Nick Terrell [Mon, 11 May 2020 20:53:18 +0000 (13:53 -0700)] 
Merge pull request #2128 from terrelln/benches

Update benchmarks and add fast mode

5 years agoUpdate benchmarks and add fast mode 2128/head
Nick Terrell [Mon, 11 May 2020 19:29:03 +0000 (12:29 -0700)] 
Update benchmarks and add fast mode

5 years agoMerge pull request #2127 from bimbashrestha/docs1
Bimba Shrestha [Mon, 11 May 2020 17:51:35 +0000 (12:51 -0500)] 
Merge pull request #2127 from bimbashrestha/docs1

[doc] documenting non-supported grep options for zstdgrep to README

5 years agodocumenting non-supported grep options for zstdgrep 2127/head
Bimba Shrestha [Mon, 11 May 2020 17:22:45 +0000 (12:22 -0500)] 
documenting non-supported grep options for zstdgrep

5 years agoMerge pull request #2120 from facebook/clevel_doc
Yann Collet [Mon, 11 May 2020 16:42:33 +0000 (09:42 -0700)] 
Merge pull request #2120 from facebook/clevel_doc

updated zstd CLI documentation

5 years agoprograms/Makefile: make it actually work with clang 2125/head
Mingye Wang [Sun, 10 May 2020 08:36:08 +0000 (16:36 +0800)] 
programs/Makefile: make it actually work with clang

Recent versions of clang seem to require a step of conversion from the profraw file to a "compiler-readable" profdata file to let PGO work.

5 years agore-inforced tests for initStaticCCtx
Yann Collet [Sat, 9 May 2020 18:30:45 +0000 (11:30 -0700)] 
re-inforced tests for initStaticCCtx

ensure that `estimateCCtxSize()` works as intended.

5 years agoMerge pull request #2122 from felixhandte/unused-variables
Felix Handte [Fri, 8 May 2020 22:17:38 +0000 (18:17 -0400)] 
Merge pull request #2122 from felixhandte/unused-variables

Compile Under `-Wunused-variable`

5 years agominor clarification on `-o file` 2123/head
Yann Collet [Fri, 8 May 2020 21:20:47 +0000 (14:20 -0700)] 
minor clarification on `-o file`

5 years agoMerge branch 'dev' of github.com:facebook/zstd into dev
Yann Collet [Fri, 8 May 2020 21:15:56 +0000 (14:15 -0700)] 
Merge branch 'dev' of github.com:facebook/zstd into dev

5 years agoupdated `zstd -h`
Yann Collet [Fri, 8 May 2020 21:14:46 +0000 (14:14 -0700)] 
updated `zstd -h`

to help readability.
Group arguments into categories,
try to give better visibility to more common arguments.

5 years agoMerge pull request #2116 from felixhandte/pkg-config-again-again
Felix Handte [Fri, 8 May 2020 21:14:43 +0000 (17:14 -0400)] 
Merge pull request #2116 from felixhandte/pkg-config-again-again

Fix pkg-config File Generation Again Again

5 years agoUse Unused Variable 2122/head
W. Felix Handte [Fri, 8 May 2020 20:42:15 +0000 (16:42 -0400)] 
Use Unused Variable

5 years agodocument additional compilation macros 2120/head
Yann Collet [Fri, 8 May 2020 20:35:59 +0000 (13:35 -0700)] 
document additional compilation macros

ZSTD_NOBENCH, ZSTD_NODICT, ZSTD_NOCOMPRESS, ZSTD_NODECOMPRESS

5 years agoOnly Trigger libzstd.pc Build on Unix-Like Platforms 2116/head
W. Felix Handte [Fri, 8 May 2020 20:01:26 +0000 (16:01 -0400)] 
Only Trigger libzstd.pc Build on Unix-Like Platforms

We don't even define the rule on unsupported platforms.

5 years agoTest libzstd.pc Build on Travis OS X
W. Felix Handte [Fri, 8 May 2020 17:10:20 +0000 (13:10 -0400)] 
Test libzstd.pc Build on Travis OS X

5 years agoAdd libzstd.pc Build to More Aggregate Targets in Makefiles
W. Felix Handte [Fri, 8 May 2020 17:06:31 +0000 (13:06 -0400)] 
Add libzstd.pc Build to More Aggregate Targets in Makefiles

5 years agoFix pkg-config File Generation Again Again
W. Felix Handte [Thu, 7 May 2020 17:12:59 +0000 (13:12 -0400)] 
Fix pkg-config File Generation Again Again

Resubmission of #2001. This switches the `sed` invocations to use `-E`,
extended regex syntax, which is better standardized across platforms.
I guess.

Same test plan:

```
make -C lib clean libzstd.pc
cat lib/libzstd.pc

echo # should fail
make -C lib clean libzstd.pc     LIBDIR=/foo
make -C lib clean libzstd.pc INCLUDEDIR=/foo
make -C lib clean libzstd.pc     LIBDIR=/usr/localfoo
make -C lib clean libzstd.pc INCLUDEDIR=/usr/localfoo
make -C lib clean libzstd.pc     LIBDIR=/usr/local/lib     prefix=/foo
make -C lib clean libzstd.pc INCLUDEDIR=/usr/local/include prefix=/foo

echo # should succeed
make -C lib clean libzstd.pc     LIBDIR=/usr/local/foo
make -C lib clean libzstd.pc INCLUDEDIR=/usr/local/foo
make -C lib clean libzstd.pc     LIBDIR=/usr/local/
make -C lib clean libzstd.pc INCLUDEDIR=/usr/local/
make -C lib clean libzstd.pc     LIBDIR=/usr/local
make -C lib clean libzstd.pc INCLUDEDIR=/usr/local
make -C lib clean libzstd.pc     LIBDIR=/tmp/foo prefix=/tmp
make -C lib clean libzstd.pc INCLUDEDIR=/tmp/foo prefix=/tmp
make -C lib clean libzstd.pc     LIBDIR=/tmp/foo prefix=/tmp/foo
make -C lib clean libzstd.pc INCLUDEDIR=/tmp/foo prefix=/tmp/foo

echo # should also succeed
make -C lib clean libzstd.pc prefix=/foo LIBDIR=/foo/bar INCLUDEDIR=/foo/
cat lib/libzstd.pc

mkdir out
cd out
cmake ../build/cmake
make
cat lib/libzstd.pc
```

5 years agoMerge pull request #2078 from nocnokneo/fix-destdir-installs
Felix Handte [Fri, 8 May 2020 20:09:44 +0000 (16:09 -0400)] 
Merge pull request #2078 from nocnokneo/fix-destdir-installs

CMake: Fix DESTDIR installs and the Package Config file

5 years agoMerge branch 'dev' into clevel_doc
Yann Collet [Fri, 8 May 2020 18:59:45 +0000 (11:59 -0700)] 
Merge branch 'dev' into clevel_doc

5 years agoMerge pull request #2118 from Artoria2e5/patch-1
Nick Terrell [Fri, 8 May 2020 18:13:44 +0000 (11:13 -0700)] 
Merge pull request #2118 from Artoria2e5/patch-1

programs/README.md: update help text

5 years agoupdated documentation regarding ZSTD_CLEVEL
Yann Collet [Fri, 8 May 2020 17:51:37 +0000 (10:51 -0700)] 
updated documentation regarding ZSTD_CLEVEL

make it clearer that it's useful for `tar --zstd`.

5 years agoMerge pull request #2119 from bimbashrestha/mingw
Bimba Shrestha [Fri, 8 May 2020 15:54:06 +0000 (10:54 -0500)] 
Merge pull request #2119 from bimbashrestha/mingw

[build] Adding $TARGET_SYSTEM for cross-compilation Fedora fix

5 years agoadding 2119/head
Bimba Shrestha [Fri, 8 May 2020 03:07:40 +0000 (22:07 -0500)] 
adding

5 years agoMerge pull request #2114 from facebook/verbose
Yann Collet [Thu, 7 May 2020 20:16:33 +0000 (13:16 -0700)] 
Merge pull request #2114 from facebook/verbose

support for verbose make

5 years agoMerge pull request #2112 from facebook/cfast
Yann Collet [Thu, 7 May 2020 20:13:34 +0000 (13:13 -0700)] 
Merge pull request #2112 from facebook/cfast

small speed improvement for strategy fast

5 years agoChange the modification of ZSTD_wildcopy()
caoyzh [Tue, 14 Apr 2020 13:33:25 +0000 (21:33 +0800)] 
Change the modification of ZSTD_wildcopy()

5 years agorevert ZSTD_reduceTable_internal()'s modificatiion
caoyzh [Tue, 14 Apr 2020 13:29:43 +0000 (21:29 +0800)] 
revert ZSTD_reduceTable_internal()'s modificatiion

5 years agoModify indent of comments
caoyzh [Thu, 2 Apr 2020 15:08:13 +0000 (23:08 +0800)] 
Modify indent of comments

5 years agoChange "arm_neon.h" to system include <arm_neon.h>
caoyzh [Fri, 27 Mar 2020 16:11:50 +0000 (00:11 +0800)] 
Change "arm_neon.h" to system include <arm_neon.h>

5 years agoOptimize compression by using neon function.
caoyzh [Mon, 16 Mar 2020 03:07:31 +0000 (11:07 +0800)] 
Optimize compression by using neon function.

5 years agoprograms/README.md: update help text 2118/head
Mingye Wang [Thu, 7 May 2020 18:52:18 +0000 (02:52 +0800)] 
programs/README.md: update help text

I noticed that the help is outdated as there is no mention of --adapt. Y'all should probably put "update help text" into your release checklist.

5 years ago[zdict] Stabilize ZDICT_finalizeDictionary()
Nick Terrell [Thu, 7 May 2020 01:51:14 +0000 (18:51 -0700)] 
[zdict] Stabilize ZDICT_finalizeDictionary()

5 years agoMerge pull request #2115 from bimbashrestha/docs
Bimba Shrestha [Thu, 7 May 2020 17:03:33 +0000 (12:03 -0500)] 
Merge pull request #2115 from bimbashrestha/docs

[doc] Adding static analysis section and note

5 years agoadding some static-anslysis docs 2115/head
Bimba Shrestha [Thu, 7 May 2020 15:38:06 +0000 (10:38 -0500)] 
adding some static-anslysis docs

5 years agosupport for verbose make 2114/head
Yann Collet [Thu, 7 May 2020 14:59:56 +0000 (07:59 -0700)] 
support for verbose make

A commonly accepted makefile idiom is V=1 or VERBOSE=1
to request the printing of all commands.

This is not "default" though, and must be manually added.

Example :
Before :
```
make libzstd
compiling dynamic library 1.4.5
creating versioned links

make libzstd V=1
compiling dynamic library 1.4.5
creating versioned links
```

After :
```
make libzstd
compiling dynamic library 1.4.5
creating versioned links

make libzstd V=1
compiling dynamic library 1.4.5
cc -DXXH_NAMESPACE=ZSTD_ -DZSTD_LEGACY_SUPPORT=5 -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wundef -Wpointer-arith -Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings -Wredundant-decls -Wmissing-prototypes -Wc++-compat  -O3 common/debug.c common/entropy_common.c common/error_private.c common/fse_decompress.c common/pool.c common/threading.c common/xxhash.c common/zstd_common.c compress/fse_compress.c compress/hist.c compress/huf_compress.c compress/zstd_compress.c compress/zstd_compress_literals.c compress/zstd_compress_sequences.c compress/zstd_compress_superblock.c compress/zstd_double_fast.c compress/zstd_fast.c compress/zstd_lazy.c compress/zstd_ldm.c compress/zstd_opt.c compress/zstdmt_compress.c decompress/huf_decompress.c decompress/zstd_ddict.c decompress/zstd_decompress.c decompress/zstd_decompress_block.c deprecated/zbuff_common.c deprecated/zbuff_compress.c deprecated/zbuff_decompress.c dictBuilder/cover.c dictBuilder/divsufsort.c dictBuilder/fastcover.c dictBuilder/zdict.c legacy/zstd_v05.c legacy/zstd_v06.c legacy/zstd_v07.c -shared -fPIC -fvisibility=hidden -Wl,-soname=libzstd.so.1 -o libzstd.so.1.4.5
creating versioned links
ln -sf libzstd.so.1.4.5 libzstd.so.1
ln -sf libzstd.so.1.4.5 libzstd.so
```

5 years agosmall speed improvement for strategy fast 2112/head
Yann Collet [Thu, 7 May 2020 12:01:27 +0000 (05:01 -0700)] 
small speed improvement for strategy fast

gcc 9.3.0 :
kennedy : 459 -> 466
silesia : 360 -> 365
enwik8  : 267 -> 269

clang 10.0.0 :
kennedy : 436 -> 441
silesia : 364 -> 366
enwik8  : 271 -> 272

5 years ago[lib] Fix NULL pointer dereference
Nick Terrell [Fri, 1 May 2020 23:35:35 +0000 (16:35 -0700)] 
[lib] Fix NULL pointer dereference

When the output buffer is `NULL` with size 0, but the frame content size
is non-zero, we will write to the NULL pointer because our bounds check
underflowed.

This was exposed by a recent PR that allowed an empty frame into the
single-pass shortcut in streaming mode.

* Fix the bug.
* Fix another NULL dereference in zstd-v1.
* Overflow checks in 32-bit mode.
* Add a dedicated test.
* Expose the bug in the dedicated simple_decompress fuzzer.
* Switch all mallocs in fuzzers to return NULL for size=0.
* Fix a new timeout in a fuzzer.

Neither clang nor gcc show a decompression speed regression on x86-64.
On x86-32 clang is slightly positive and gcc loses 2.5% of speed.

Credit to OSS-Fuzz.

5 years agoMerge pull request #2103 from felixhandte/relative-includes
Felix Handte [Wed, 6 May 2020 16:42:23 +0000 (09:42 -0700)] 
Merge pull request #2103 from felixhandte/relative-includes

Migrate Includes to Relative Paths