]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
5 years agoMake sure contentsize is known 1860/head
Sen Huang [Wed, 30 Oct 2019 20:03:58 +0000 (16:03 -0400)] 
Make sure contentsize is known

5 years agoMerge pull request #1856 from terrelln/assert-fix
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

5 years agoFix assert in ZSTD_safecopy 1856/head
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.

5 years agoMerge branch 'dev' of github.com:facebook/zstd into dev
Yann Collet [Mon, 28 Oct 2019 19:57:23 +0000 (12:57 -0700)] 
Merge branch 'dev' of github.com:facebook/zstd into dev

5 years agoupdated CHANGELOG for v1.4.4
Yann Collet [Mon, 28 Oct 2019 19:57:05 +0000 (12:57 -0700)] 
updated CHANGELOG for v1.4.4

5 years agoMerge pull request #1851 from felixhandte/pkg-config-prefix-fix
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

5 years agoupdated API inline doc and manual
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.

5 years agoMerge pull request #1848 from felixhandte/tzst-ext-tmp
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

5 years agoMerge pull request #1847 from facebook/zlibwrap_visual
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

5 years agoIn pkg-config File, Derive Lib and Include Dir from Prefix at Use-Time 1851/head
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.

5 years agoMinor Fixes 1848/head
W. Felix Handte [Fri, 25 Oct 2019 17:58:58 +0000 (13:58 -0400)] 
Minor Fixes

5 years agoMerge pull request #1845 from facebook/zbuff
Yann Collet [Fri, 25 Oct 2019 16:59:00 +0000 (09:59 -0700)] 
Merge pull request #1845 from facebook/zbuff

improve deprecation warning macro

5 years agoAdd Tests
W. Felix Handte [Fri, 25 Oct 2019 00:19:10 +0000 (20:19 -0400)] 
Add Tests

5 years agoFix Build; Refactor
W. Felix Handte [Fri, 25 Oct 2019 00:18:57 +0000 (20:18 -0400)] 
Fix Build; Refactor

5 years agofix zlibWrapper for Visual Studio 1847/head
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.

5 years agoMerge pull request #1790 from stokito/tzst-ext
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)

5 years agoMerge branch 'tzst-ext-tmp' into tzst-ext 1790/head
Felix Handte [Thu, 24 Oct 2019 21:49:34 +0000 (17:49 -0400)] 
Merge branch 'tzst-ext-tmp' into tzst-ext

5 years agoMerge pull request #1841 from bimbashrestha/travis
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

5 years agoMerge pull request #1839 from bimbashrestha/named_pipes
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

5 years agoMerge pull request #1824 from senhuang42/new_path_for_cdict
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.

5 years agoimprove deprecation warning macro 1845/head
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).

5 years agoMoving arm64 test outside the meson scope 1841/head
Bimba Shrestha [Wed, 23 Oct 2019 17:43:20 +0000 (10:43 -0700)] 
Moving arm64 test outside the meson scope

5 years agoMerge pull request #1840 from terrelln/regression-fix
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

5 years agoAdding arm64 make check
Bimba Shrestha [Wed, 23 Oct 2019 00:43:29 +0000 (17:43 -0700)] 
Adding arm64 make check

5 years agoadded documentation on DYNAMIC_BMI2 build macro
Yann Collet [Wed, 23 Oct 2019 00:43:09 +0000 (17:43 -0700)] 
added documentation on DYNAMIC_BMI2 build macro

5 years agoMerge pull request #4 from facebook/dev
Bimba Shrestha [Wed, 23 Oct 2019 00:33:12 +0000 (17:33 -0700)] 
Merge pull request #4 from facebook/dev

Merging dev

5 years agoAdding shell test and removing bash test file 1839/head
Bimba Shrestha [Wed, 23 Oct 2019 00:09:44 +0000 (17:09 -0700)] 
Adding shell test and removing bash test file

5 years agoMerge pull request #1838 from facebook/fixAdvanced
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

5 years agoAdding bash test for named pipes
Bimba Shrestha [Tue, 22 Oct 2019 23:15:59 +0000 (16:15 -0700)] 
Adding bash test for named pipes

5 years ago[regression] Fix the old streaming regression test 1840/head
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.

5 years agoAllowing named pipes to go through zstdcli
Bimba Shrestha [Tue, 22 Oct 2019 22:23:22 +0000 (15:23 -0700)] 
Allowing named pipes to go through zstdcli

5 years agoMerge pull request #1836 from facebook/dirFlat2
Yann Collet [Tue, 22 Oct 2019 22:19:04 +0000 (15:19 -0700)] 
Merge pull request #1836 from facebook/dirFlat2

Added --output-dir-flat=

5 years agofix initCStream_advanced() for fast strategies 1838/head
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)

5 years agoupdate documentation on deprecated functions
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

5 years agoMerge pull request #1837 from terrelln/magic-isnt-real
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

5 years agoFix ZSTD_f_zstd1_magicless for small data 1837/head
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.

5 years ago((x or y) or z) == (x or y or z), remove brackets 1824/head
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

5 years agoLine up comments :)
Sen Huang [Mon, 21 Oct 2019 23:12:15 +0000 (19:12 -0400)] 
Line up comments :)

5 years agoTrailing comma
Sen Huang [Mon, 21 Oct 2019 23:10:13 +0000 (19:10 -0400)] 
Trailing comma

5 years agoMerge branch 'dev' of github.com:senhuang42/zstd into new_path_for_cdict
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

5 years agomerge
Sen Huang [Mon, 21 Oct 2019 23:02:52 +0000 (19:02 -0400)] 
merge

5 years agoFix bad merge
Sen Huang [Mon, 21 Oct 2019 22:55:17 +0000 (18:55 -0400)] 
Fix bad merge

5 years agoMerge pull request #1831 from terrelln/zstdmt-bad-memset
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

5 years agomerge
Sen Huang [Mon, 21 Oct 2019 22:46:17 +0000 (18:46 -0400)] 
merge

5 years agoAdded --output-dir-flat= 1836/head
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.

5 years agoMerge pull request #1834 from facebook/winFix
Yann Collet [Mon, 21 Oct 2019 20:45:17 +0000 (13:45 -0700)] 
Merge pull request #1834 from facebook/winFix

Windows fixes

5 years agoturned off zlib tests during msan 1834/head
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

5 years agoAdded multiplier, renamed new enum to something more useful
Sen Huang [Mon, 21 Oct 2019 19:29:55 +0000 (15:29 -0400)] 
Added multiplier, renamed new enum to something more useful

5 years agoUpdated forceAttachDict param bounds
Sen Huang [Mon, 21 Oct 2019 02:01:08 +0000 (22:01 -0400)] 
Updated forceAttachDict param bounds

5 years agoAdd enum to decision process
Sen Huang [Sun, 20 Oct 2019 23:02:47 +0000 (19:02 -0400)] 
Add enum to decision process

5 years agoAdded support for forcing new CDict behavior and updated enum
Sen Huang [Sun, 20 Oct 2019 18:03:09 +0000 (14:03 -0400)] 
Added support for forcing new CDict behavior and updated enum

5 years agoChanged to int from BYTE
Sen Huang [Wed, 16 Oct 2019 19:06:02 +0000 (15:06 -0400)] 
Changed to int from BYTE

5 years agoChanged to int from BYTE
Sen Huang [Wed, 16 Oct 2019 19:05:29 +0000 (15:05 -0400)] 
Changed to int from BYTE

5 years agoTrailing whitespace
Sen Huang [Wed, 16 Oct 2019 14:31:27 +0000 (10:31 -0400)] 
Trailing whitespace

5 years agoFix test
Sen Huang [Wed, 16 Oct 2019 14:29:31 +0000 (10:29 -0400)] 
Fix test

5 years agoCast to BYTE to appease appveyor
Sen Huang [Tue, 15 Oct 2019 17:58:44 +0000 (13:58 -0400)] 
Cast to BYTE to appease appveyor

5 years agomerge conflicts round 2
Sen Huang [Tue, 15 Oct 2019 17:10:05 +0000 (13:10 -0400)] 
merge conflicts round 2

5 years agoformatting
Sen Huang [Tue, 15 Oct 2019 16:44:48 +0000 (12:44 -0400)] 
formatting

5 years agoFix error
Sen Huang [Tue, 15 Oct 2019 16:28:23 +0000 (12:28 -0400)] 
Fix error

5 years agoAdd compressionlevel to cdict
Sen Huang [Tue, 15 Oct 2019 14:22:06 +0000 (10:22 -0400)] 
Add compressionlevel to cdict

5 years agominor refactor of FIO_compressGzFrame()
Yann Collet [Mon, 21 Oct 2019 19:14:59 +0000 (12:14 -0700)] 
minor refactor of FIO_compressGzFrame()

mostly narrowing variables lifetime and mutability.

5 years agoMerge pull request #1795 from felixhandte/workspace-asan
Felix Handte [Mon, 21 Oct 2019 16:15:17 +0000 (12:15 -0400)] 
Merge pull request #1795 from felixhandte/workspace-asan

Add Poisoned Redzones to the Workspace When Compiling with ASAN

5 years agoUpdated forceAttachDict param bounds
Sen Huang [Mon, 21 Oct 2019 02:01:08 +0000 (22:01 -0400)] 
Updated forceAttachDict param bounds

5 years agoAdd enum to decision process
Sen Huang [Sun, 20 Oct 2019 23:02:47 +0000 (19:02 -0400)] 
Add enum to decision process

5 years agoAdded support for forcing new CDict behavior and updated enum
Sen Huang [Sun, 20 Oct 2019 18:03:09 +0000 (14:03 -0400)] 
Added support for forcing new CDict behavior and updated enum

5 years agoMerge pull request #1835 from facebook/format034
Yann Collet [Sat, 19 Oct 2019 12:24:42 +0000 (05:24 -0700)] 
Merge pull request #1835 from facebook/format034

clarifications for the FSE decoding table

5 years agoclarifications for the FSE decoding table 1835/head
Yann Collet [Sat, 19 Oct 2019 00:48:12 +0000 (17:48 -0700)] 
clarifications for the FSE decoding table

requested in #1782

5 years agoMerge branch 'dev' of github.com:facebook/zstd into dev
Yann Collet [Sat, 19 Oct 2019 00:23:39 +0000 (17:23 -0700)] 
Merge branch 'dev' of github.com:facebook/zstd into dev

5 years agoadded mode documentation on ZSTD_CLEVEL
Yann Collet [Sat, 19 Oct 2019 00:22:45 +0000 (17:22 -0700)] 
added mode documentation on ZSTD_CLEVEL

providing range restriction [1-19] explicitly
partially answering #1829

5 years agofixed visual defined test
Yann Collet [Sat, 19 Oct 2019 00:08:52 +0000 (17:08 -0700)] 
fixed visual defined test

5 years agoremoved Visual warning
Yann Collet [Sat, 19 Oct 2019 00:05:42 +0000 (17:05 -0700)] 
removed Visual warning

for pointer casts

5 years agoMerge pull request #1832 from terrelln/fuzz-stream-fix
Nick Terrell [Fri, 18 Oct 2019 23:35:23 +0000 (16:35 -0700)] 
Merge pull request #1832 from terrelln/fuzz-stream-fix

[fuzz] Increase output buffer size of stream_round_trip

5 years agofix function cast warning on Windows with gcc9
Yann Collet [Fri, 18 Oct 2019 22:45:31 +0000 (15:45 -0700)] 
fix function cast warning on Windows with gcc9

5 years agoupdated windows binary resources
Yann Collet [Fri, 18 Oct 2019 22:41:12 +0000 (15:41 -0700)] 
updated windows binary resources

5 years agovalidated 'make test' for mingw environment
Yann Collet [Fri, 18 Oct 2019 22:37:07 +0000 (15:37 -0700)] 
validated 'make test' for mingw environment

5 years agomade `make check` faster
Yann Collet [Fri, 18 Oct 2019 22:21:50 +0000 (15:21 -0700)] 
made `make check` faster

for shorter feedback loop

5 years ago[zstdmt] Don't memset the jobDescription 1831/head
Nick Terrell [Fri, 18 Oct 2019 17:59:15 +0000 (10:59 -0700)] 
[zstdmt] Don't memset the jobDescription

5 years ago[threading] Add debug utilities
Nick Terrell [Fri, 18 Oct 2019 19:33:45 +0000 (12:33 -0700)] 
[threading] Add debug utilities

5 years agominor appveyor test script fix
Yann Collet [Fri, 18 Oct 2019 22:02:30 +0000 (15:02 -0700)] 
minor appveyor test script fix

5 years agoattempt to run 'make check' tests on Appveyor
Yann Collet [Fri, 18 Oct 2019 21:52:16 +0000 (14:52 -0700)] 
attempt to run 'make check' tests on Appveyor

for mingw builds

5 years agofix test on windows
Yann Collet [Fri, 18 Oct 2019 21:28:34 +0000 (14:28 -0700)] 
fix test on windows

isDirectory() doesn't work on Windows
if directory name is followed by '/'

5 years ago[fuzz] Increase output buffer size of stream_round_trip 1832/head
Nick Terrell [Fri, 18 Oct 2019 20:34:35 +0000 (13:34 -0700)] 
[fuzz] Increase output buffer size of stream_round_trip

Fixes OSS-Fuzz crash.
Credit to OSS-Fuzz

5 years agorewrite FIO_createFilename_fromOutDir()
Yann Collet [Fri, 18 Oct 2019 18:15:10 +0000 (11:15 -0700)] 
rewrite FIO_createFilename_fromOutDir()

5 years agofix : no output file opened in test mode
Yann Collet [Thu, 17 Oct 2019 23:58:49 +0000 (16:58 -0700)] 
fix : no output file opened in test mode

also : redistributed error code within fileio.c
for more precise diagnosis.

5 years agoremoved regular file test on Windows
Yann Collet [Thu, 17 Oct 2019 23:39:47 +0000 (16:39 -0700)] 
removed regular file test on Windows

since it does not work well on this platform
(tested with MinGW).

Note : could be an issue within UTIL_isRegularFile()

5 years agoimproved test mode `-t`
Yann Collet [Thu, 17 Oct 2019 23:09:53 +0000 (16:09 -0700)] 
improved test mode `-t`

The test mode do no longer open a file `/dev/null` nor write anything to output.

This is supposed to be more efficient than writing to `/dev/null`,
and more universal too : the previous method was failing on Windows.

5 years agorefactored FIO_compressMultipleFilenames() prototype
Yann Collet [Thu, 17 Oct 2019 22:32:03 +0000 (15:32 -0700)] 
refactored FIO_compressMultipleFilenames() prototype

for consistency

5 years agofixed multiple implicit casts
Yann Collet [Thu, 17 Oct 2019 22:27:25 +0000 (15:27 -0700)] 
fixed multiple implicit casts

5 years agotests: can override isTerminal with environment variable
Yann Collet [Thu, 17 Oct 2019 22:07:47 +0000 (15:07 -0700)] 
tests: can override isTerminal with environment variable

5 years agofixed isSameFile()
Yann Collet [Thu, 17 Oct 2019 21:31:42 +0000 (14:31 -0700)] 
fixed isSameFile()

5 years agofix harness test
Yann Collet [Thu, 17 Oct 2019 21:29:48 +0000 (14:29 -0700)] 
fix harness test

5 years agofixed dict ptr init
Yann Collet [Thu, 17 Oct 2019 21:15:00 +0000 (14:15 -0700)] 
fixed dict ptr init

5 years agominor refactoring of harness
Yann Collet [Thu, 17 Oct 2019 21:11:54 +0000 (14:11 -0700)] 
minor refactoring of harness

5 years agominor: DIFF determination
Yann Collet [Thu, 17 Oct 2019 21:03:20 +0000 (14:03 -0700)] 
minor: DIFF determination

use gdiff on SunOS

5 years agoforce compression during tests
Yann Collet [Thu, 17 Oct 2019 20:01:18 +0000 (13:01 -0700)] 
force compression during tests

to erase potentially remaining artifacts from previous runs

5 years agofix several cast
Yann Collet [Thu, 17 Oct 2019 18:01:20 +0000 (11:01 -0700)] 
fix several cast

5 years agofix incorrect dictName/FileName comparison on Windows
Yann Collet [Thu, 17 Oct 2019 17:56:14 +0000 (10:56 -0700)] 
fix incorrect dictName/FileName comparison on Windows

inode identification does not seem to work on Windows,
even with on a msys2 posix layer.

5 years agoMerge branch 'dev' of github.com:facebook/zstd into dev
Yann Collet [Thu, 17 Oct 2019 17:50:58 +0000 (10:50 -0700)] 
Merge branch 'dev' of github.com:facebook/zstd into dev

5 years agoignore build artifact from educational decoder test
Yann Collet [Thu, 17 Oct 2019 17:50:39 +0000 (10:50 -0700)] 
ignore build artifact from educational decoder test

5 years agoMerge pull request #1827 from facebook/dm_Dct
Yann Collet [Thu, 17 Oct 2019 17:30:58 +0000 (10:30 -0700)] 
Merge pull request #1827 from facebook/dm_Dct

updated erroneous comments using ZSTD_dm_*