]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
6 years agofileio: Disable BACKTRACE under uClibc 1613/head
Rosen Penev [Mon, 6 May 2019 22:02:47 +0000 (15:02 -0700)] 
fileio: Disable BACKTRACE under uClibc

uClibc does not support BACKTRACE. It also defines __GLIBC__ and minor as both 2.
This fixes compilation under such a setup.

6 years agoMerge pull request #1610 from terrelln/pool-test
Nick Terrell [Thu, 2 May 2019 22:13:50 +0000 (15:13 -0700)] 
Merge pull request #1610 from terrelln/pool-test

[test] Fix poolTests deadlock and flakiness

6 years ago[tests] Only sleep 10ms in poolTests 1610/head
Nick Terrell [Thu, 2 May 2019 21:35:25 +0000 (14:35 -0700)] 
[tests] Only sleep 10ms in poolTests

6 years ago[test] Fix poolTests deadlock and flakiness
Nick Terrell [Thu, 2 May 2019 20:23:41 +0000 (13:23 -0700)] 
[test] Fix poolTests deadlock and flakiness

6 years agomeson: Enable testing in CI (#1609)
lzutao [Thu, 2 May 2019 19:35:37 +0000 (02:35 +0700)] 
meson: Enable testing in CI (#1609)

* tests: Fix shellcheck warnings in playTests.sh

* tests: Do not use ../programs which is relative to tests dirs

This commit fixes error when running playTests.sh in Meson.
Mesonbuild runs out of tree, so ./datagen not in `zstd/tests` dir,
it lies in <mesonbuilddir>/tests. This leads to ../programs invalid.

* tests: Replace relative paths for zstd/tests dir

* playTests: Set shell options explicitly, not in shebang

* playTests: Replace echo -e with printf

* meson: Fix test-zstd

Use std=gnu99 to build and test just like `make test`.

* meson: Fix legacy test

* meson: Enable testing in CI

Run build under release mode for faster test time.

* meson: Increase timeout time for test-zstream

6 years agoMerge pull request #1602 from lzutao/meson
Nick Terrell [Tue, 30 Apr 2019 15:45:00 +0000 (08:45 -0700)] 
Merge pull request #1602 from lzutao/meson

meson: Update default project version

6 years agomeson: Error out if fail to extracted version number 1602/head
Lzu Tao [Tue, 30 Apr 2019 06:12:00 +0000 (13:12 +0700)] 
meson: Error out if fail to extracted version number

6 years agoMerge pull request #1604 from vejnar/dev
Nick Terrell [Tue, 30 Apr 2019 00:02:42 +0000 (17:02 -0700)] 
Merge pull request #1604 from vejnar/dev

Make zstdcat to follow symbolic links

6 years agoadd test for zstdcat and zcat on symlink 1604/head
cev [Mon, 29 Apr 2019 22:47:47 +0000 (18:47 -0400)] 
add test for zstdcat and zcat on symlink

6 years agoMerge pull request #1603 from sjnam/examples-test-fail
Nick Terrell [Mon, 29 Apr 2019 20:45:58 +0000 (13:45 -0700)] 
Merge pull request #1603 from sjnam/examples-test-fail

fails to "make test" in examples

6 years agoset followLinks option true to cat, zcat and gzcat programs
cev [Sat, 27 Apr 2019 23:06:29 +0000 (19:06 -0400)] 
set followLinks option true to cat, zcat and gzcat programs

6 years agofix test fail 1603/head
sjnam [Sat, 27 Apr 2019 20:05:45 +0000 (05:05 +0900)] 
fix test fail

6 years agomeson: Update default project version
Lzu Tao [Fri, 26 Apr 2019 18:42:22 +0000 (01:42 +0700)] 
meson: Update default project version

* Update to use ninja v1.9.0 on CI

6 years agoMerge pull request #1600 from myzhang1029/long-tell
Nick Terrell [Thu, 25 Apr 2019 04:05:25 +0000 (21:05 -0700)] 
Merge pull request #1600 from myzhang1029/long-tell

Fix #1591 - Not building on MinGW-W64

6 years agoFix #1591 - Not building on MinGW-W64 1600/head
myzhang1029 [Wed, 24 Apr 2019 12:06:05 +0000 (20:06 +0800)] 
Fix #1591 - Not building on MinGW-W64

Add a static function LONG_TELL for the forth #if branch

6 years agoMerge pull request #1598 from terrelln/decode-seq
Nick Terrell [Tue, 23 Apr 2019 22:44:20 +0000 (15:44 -0700)] 
Merge pull request #1598 from terrelln/decode-seq

[libzstd] Error if all sequence bits aren't consumed

6 years ago[libzstd] Add a ZSTD_STATIC_ASSERT for BIT_DStream_status 1598/head
Nick Terrell [Tue, 23 Apr 2019 21:22:16 +0000 (14:22 -0700)] 
[libzstd] Add a ZSTD_STATIC_ASSERT for BIT_DStream_status

6 years ago[libzstd] Error if all sequence bits aren't consumed
Nick Terrell [Tue, 23 Apr 2019 21:07:36 +0000 (14:07 -0700)] 
[libzstd] Error if all sequence bits aren't consumed

6 years agoMerge pull request #1595 from terrelln/legacy-fix
Nick Terrell [Fri, 19 Apr 2019 19:23:50 +0000 (12:23 -0700)] 
Merge pull request #1595 from terrelln/legacy-fix

[legacy] Fix ZSTDv0*_decodeSequence()

6 years ago[legacy] Fix ZSTDv0*_decodeSequence() 1595/head
Nick Terrell [Fri, 19 Apr 2019 18:34:52 +0000 (11:34 -0700)] 
[legacy] Fix ZSTDv0*_decodeSequence()

* Version <= 0.5 could read beyond the end of `dumps`, which points into
  the input buffer.
* Check the validity of `dumps` before using it, if it is out of bounds
  return garbage values. There is no return code for this function.
* Introduce `MEM_readLE24()` for simplicity, since I don't want to trust
  that there is an extra byte after `dumps`.

6 years agoMerge pull request #1594 from terrelln/legacy-fix
Nick Terrell [Fri, 19 Apr 2019 00:29:32 +0000 (17:29 -0700)] 
Merge pull request #1594 from terrelln/legacy-fix

[legacy] Fix Huffman jump table reads in v01 and v05

6 years ago[legacy] Fix Huffman jump table reads in v01 and v05 1594/head
Nick Terrell [Thu, 18 Apr 2019 23:20:42 +0000 (16:20 -0700)] 
[legacy] Fix Huffman jump table reads in v01 and v05

6 years agoMerge pull request #1593 from terrelln/legacy-fix
Nick Terrell [Thu, 18 Apr 2019 23:07:42 +0000 (16:07 -0700)] 
Merge pull request #1593 from terrelln/legacy-fix

[fuzzer] Run fuzzers in legacy mode and fix legacy code

6 years ago[paramgrill] Fix mingw build errors 1593/head
Nick Terrell [Thu, 18 Apr 2019 22:06:56 +0000 (15:06 -0700)] 
[paramgrill] Fix mingw build errors

6 years ago[legacy] Fix bug in ZSTD_decodeSeqHeaders()
Nick Terrell [Thu, 18 Apr 2019 19:24:47 +0000 (12:24 -0700)] 
[legacy] Fix bug in ZSTD_decodeSeqHeaders()

6 years ago[legacy] Fix a bug in ZSTDv06_findFrameSizeInfoLegacy()
Nick Terrell [Thu, 18 Apr 2019 20:33:26 +0000 (13:33 -0700)] 
[legacy] Fix a bug in ZSTDv06_findFrameSizeInfoLegacy()

6 years ago[fuzzer] Compile with legacy support
Nick Terrell [Thu, 18 Apr 2019 19:44:55 +0000 (12:44 -0700)] 
[fuzzer] Compile with legacy support

6 years ago[fuzzer] Size the decompression output buffer randomly
Nick Terrell [Thu, 18 Apr 2019 19:44:21 +0000 (12:44 -0700)] 
[fuzzer] Size the decompression output buffer randomly

6 years agoMerge pull request #1590 from terrelln/frame-info-fuzz
Nick Terrell [Wed, 17 Apr 2019 19:13:49 +0000 (12:13 -0700)] 
Merge pull request #1590 from terrelln/frame-info-fuzz

[fuzzer] Fuzz frame info functions

6 years ago[fuzz] Add a seedcorpora target for oss-fuzz 1590/head
Nick Terrell [Wed, 17 Apr 2019 19:13:06 +0000 (12:13 -0700)] 
[fuzz] Add a seedcorpora target for oss-fuzz

6 years ago[libzstd] Check the size in readSkippableFrameSize()
Nick Terrell [Wed, 17 Apr 2019 18:41:55 +0000 (11:41 -0700)] 
[libzstd] Check the size in readSkippableFrameSize()

6 years ago[legacy] Return the right error code
Nick Terrell [Wed, 17 Apr 2019 18:34:52 +0000 (11:34 -0700)] 
[legacy] Return the right error code

6 years ago[fuzzer] Add a fuzzer for frame info functions
Nick Terrell [Wed, 17 Apr 2019 18:24:16 +0000 (11:24 -0700)] 
[fuzzer] Add a fuzzer for frame info functions

Add a fuzzer that fuzzes all helper functions that take compressed
input. This fuzzer caught one out of bounds read in
`ZSTD_decompressBound()`.

6 years ago[libzstd] Fix ZSTD_decompressBound() on bad skippable frames
Nick Terrell [Wed, 17 Apr 2019 18:14:49 +0000 (11:14 -0700)] 
[libzstd] Fix ZSTD_decompressBound() on bad skippable frames

The function didn't verify that the skippable frame size is correct.

6 years agoMerge pull request #1589 from terrelln/appveyorTest 1586/head
Nick Terrell [Tue, 16 Apr 2019 19:32:19 +0000 (12:32 -0700)] 
Merge pull request #1589 from terrelln/appveyorTest

 [libzstd] Require ZSTD_MULTITHREAD to create a ZSTDMT_CCtx

6 years ago[visual] Fix unreachable code warning 1589/head
Nick Terrell [Tue, 16 Apr 2019 17:22:47 +0000 (10:22 -0700)] 
[visual] Fix unreachable code warning

6 years agoMerge pull request #1588 from terrelln/release-prep
Yann Collet [Tue, 16 Apr 2019 17:11:28 +0000 (10:11 -0700)] 
Merge pull request #1588 from terrelln/release-prep

[fullbench] Fix speed measurements

6 years ago[visual] Compile with ZSTD_MULTITHREAD=1
Nick Terrell [Tue, 16 Apr 2019 05:54:07 +0000 (22:54 -0700)] 
[visual] Compile with ZSTD_MULTITHREAD=1

This branch `appveyorTests` runs the tests that `master` runs, so
passing Appveyor means that the tests are fixed.

6 years ago[libzstd] Require ZSTD_MULTITHREAD to create a ZSTDMT_CCtx
Nick Terrell [Tue, 16 Apr 2019 05:49:44 +0000 (22:49 -0700)] 
[libzstd] Require ZSTD_MULTITHREAD to create a ZSTDMT_CCtx

ZSTDMT was broken when compiled without ZSTD_MULTITHREAD defined,
because `ZSTD_CCtx_setParameter(cctx, ZSTD_c_nbWorkers, nbWorkerss)`
failed. It was detected by the MSVC test which runs the fuzzer with
multithreading disabled.

This is a very niche use case of a deprecated API, because the API is
inefficient and synchronous, since `threading.h` will be synchronous.
Users almost certainly don't want this, and anyone who tested their code
should realize that it is broken. Therefore, I think it is safe to
require `ZSTD_MULTITHREAD` to be defined to use ZSTDMT.

6 years ago[fullbench] Fix measurements 1588/head
Nick Terrell [Tue, 16 Apr 2019 04:01:27 +0000 (21:01 -0700)] 
[fullbench] Fix measurements

6 years agoMerge pull request #1587 from terrelln/release-prep
Nick Terrell [Mon, 15 Apr 2019 23:42:26 +0000 (16:42 -0700)] 
Merge pull request #1587 from terrelln/release-prep

[playTets] Don't pass status=none to dd

6 years ago[playTets] Don't pass status=none to dd 1587/head
Nick Terrell [Mon, 15 Apr 2019 23:21:46 +0000 (16:21 -0700)] 
[playTets] Don't pass status=none to dd

The OS X test machine on TravisCI doesn't recognize the parameter
https://travis-ci.org/facebook/zstd/jobs/520517933.

6 years agoMerge pull request #1585 from terrelln/release-prep
Nick Terrell [Mon, 15 Apr 2019 21:41:50 +0000 (14:41 -0700)] 
Merge pull request #1585 from terrelln/release-prep

Prepare for the zstd-1.4.0 release

6 years agoUpdate the changelog for zstd-1.4.0 1585/head
Nick Terrell [Mon, 15 Apr 2019 20:57:42 +0000 (13:57 -0700)] 
Update the changelog for zstd-1.4.0

6 years agoUpdate benchmarks in README
Nick Terrell [Mon, 15 Apr 2019 20:57:14 +0000 (13:57 -0700)] 
Update benchmarks in README

6 years agoSpelling (#1582)
Josh Soref [Fri, 12 Apr 2019 18:18:11 +0000 (14:18 -0400)] 
Spelling (#1582)

* spelling: accidentally

* spelling: across

* spelling: additionally

* spelling: addresses

* spelling: appropriate

* spelling: assumed

* spelling: available

* spelling: builder

* spelling: capacity

* spelling: compiler

* spelling: compressibility

* spelling: compressor

* spelling: compression

* spelling: contract

* spelling: convenience

* spelling: decompress

* spelling: description

* spelling: deflate

* spelling: deterministically

* spelling: dictionary

* spelling: display

* spelling: eliminate

* spelling: preemptively

* spelling: exclude

* spelling: failure

* spelling: independence

* spelling: independent

* spelling: intentionally

* spelling: matching

* spelling: maximum

* spelling: meaning

* spelling: mishandled

* spelling: memory

* spelling: occasionally

* spelling: occurrence

* spelling: official

* spelling: offsets

* spelling: original

* spelling: output

* spelling: overflow

* spelling: overridden

* spelling: parameter

* spelling: performance

* spelling: probability

* spelling: receives

* spelling: redundant

* spelling: recompression

* spelling: resources

* spelling: sanity

* spelling: segment

* spelling: series

* spelling: specified

* spelling: specify

* spelling: subtracted

* spelling: successful

* spelling: return

* spelling: translation

* spelling: update

* spelling: unrelated

* spelling: useless

* spelling: variables

* spelling: variety

* spelling: verbatim

* spelling: verification

* spelling: visited

* spelling: warming

* spelling: workers

* spelling: with

6 years agoMerge pull request #1583 from lzutao/meson
Nick Terrell [Fri, 12 Apr 2019 18:13:20 +0000 (11:13 -0700)] 
Merge pull request #1583 from lzutao/meson

Fix tests and meson build

6 years agotravis: Make Mesonbuild non-optional 1583/head
Lzu Tao [Fri, 12 Apr 2019 16:43:34 +0000 (23:43 +0700)] 
travis: Make Mesonbuild non-optional

6 years agomeson: Fix build
Lzu Tao [Fri, 12 Apr 2019 14:28:36 +0000 (21:28 +0700)] 
meson: Fix build

6 years agotests: Add missing header timefn.h
Lzu Tao [Fri, 12 Apr 2019 14:28:17 +0000 (21:28 +0700)] 
tests: Add missing header timefn.h

6 years agoMerge pull request #1581 from facebook/benchfn
Yann Collet [Thu, 11 Apr 2019 21:23:04 +0000 (14:23 -0700)] 
Merge pull request #1581 from facebook/benchfn

benchfn's reduced dependencies

6 years agofixed timespec_get() initialization bug on some targets 1581/head
Yann Collet [Thu, 11 Apr 2019 20:46:30 +0000 (13:46 -0700)] 
fixed timespec_get() initialization bug on some targets

not sure why, but msan fires an "unitialized variable" error
when time gets properly initialized by timespec_get().
Maybe in some cases, not all bytes of the structure are initialized ?
Or maybe msan fails to detect the initialization ?

Anyway, pre-initializing the variable before passing it to timespec_get() works.

6 years agofixed minor conversion warning
Yann Collet [Thu, 11 Apr 2019 19:25:27 +0000 (12:25 -0700)] 
fixed minor conversion warning

6 years agofixed poolTests on Windows
Yann Collet [Thu, 11 Apr 2019 19:03:42 +0000 (12:03 -0700)] 
fixed poolTests on Windows

must use ZSTD_ prefix in front of pthread types
so that they get properly translated for Windows.

6 years agofixed poolTests
Yann Collet [Thu, 11 Apr 2019 16:50:39 +0000 (09:50 -0700)] 
fixed poolTests

added poolTests to all

6 years agoMerge pull request #1580 from terrelln/dict-fuzz
Nick Terrell [Thu, 11 Apr 2019 02:29:09 +0000 (19:29 -0700)] 
Merge pull request #1580 from terrelln/dict-fuzz

[libzstd] Fix decompression dictionary bugs and clean up initialization

6 years agofixed minor warning
Yann Collet [Thu, 11 Apr 2019 00:48:56 +0000 (17:48 -0700)] 
fixed minor warning

unused variable when assert() turned off in fileio.c

6 years agofixed cmake build script for test programs
Yann Collet [Thu, 11 Apr 2019 00:47:01 +0000 (17:47 -0700)] 
fixed cmake build script for test programs

6 years ago[libzstd] Switch dictUses to an enum 1580/head
Nick Terrell [Wed, 10 Apr 2019 23:50:35 +0000 (16:50 -0700)] 
[libzstd] Switch dictUses to an enum

6 years agoalternate static assert
Yann Collet [Wed, 10 Apr 2019 23:05:02 +0000 (16:05 -0700)] 
alternate static assert

to circumvent Visual's C4804 warning

6 years agofixed minor conversion warning
Yann Collet [Wed, 10 Apr 2019 22:54:55 +0000 (15:54 -0700)] 
fixed minor conversion warning

6 years agoFreeBSD_11 specific fix
Yann Collet [Wed, 10 Apr 2019 22:22:18 +0000 (15:22 -0700)] 
FreeBSD_11 specific fix

C11 mandates the definition of timespec_get() and TIME_UTC.
However, FreeBSD11 announce C11 compliance, but does not provifr timespec_get(),
breaking link stage for benchfn.
Since it does not provide TIME_UTC either, which is also required by C11,
test this macro: this will automatically rule out FreeBSD 11 for this code path
(it will use the backup C90 path instead, based on clock_t).

The issue seeems fixed in FreeBSD 12.

6 years agoupdated Visual projects
Yann Collet [Wed, 10 Apr 2019 22:07:36 +0000 (15:07 -0700)] 
updated Visual projects

added timefn

6 years agofixed Windows header
Yann Collet [Wed, 10 Apr 2019 21:54:13 +0000 (14:54 -0700)] 
fixed Windows header

cmake build script: added timefn

6 years agono more need for CLOCK_MONOTONIC
Yann Collet [Wed, 10 Apr 2019 21:16:39 +0000 (14:16 -0700)] 
no more need for CLOCK_MONOTONIC

6 years agomoved C11 code path to timespec_get
Yann Collet [Wed, 10 Apr 2019 21:15:11 +0000 (14:15 -0700)] 
moved C11 code path to timespec_get

6 years agofixed perror include
Yann Collet [Wed, 10 Apr 2019 21:04:11 +0000 (14:04 -0700)] 
fixed perror include

6 years agofixed error message
Yann Collet [Wed, 10 Apr 2019 21:01:18 +0000 (14:01 -0700)] 
fixed error message

using stdlib's perror()

6 years agotried a blindfix for unix + c11
Yann Collet [Wed, 10 Apr 2019 20:26:27 +0000 (13:26 -0700)] 
tried a blindfix for unix + c11

6 years ago[libzstd] Fix decompression dictionary bugs and clean up initialization
Nick Terrell [Wed, 10 Apr 2019 19:34:21 +0000 (12:34 -0700)] 
[libzstd] Fix decompression dictionary bugs and clean up initialization

Bugs:

* `ZSTD_DCtx_refPrefix()` didn't clear the dictionary after the first
  use. Fix and add a test case.
* `ZSTD_DCtx_reset()` always cleared the dictionary. Fix and add a test
  case.
* After calling `ZSTD_resetDStream()` you could no longer load a
  dictionary, since the stage was set to `zdss_loadHeader`. Fix and add
  a test case.

Cleanup:

* Make `ZSTD_initDStream*()` and `ZSTD_resetDStream()` wrap the new
 advanced API, and add test cases.
* Document the equivalent of these functions in the advanced API and
  document the unstable functions as deprecated.

6 years agobenchfn dependencies reduced to only timefn
Yann Collet [Wed, 10 Apr 2019 19:37:03 +0000 (12:37 -0700)] 
benchfn dependencies reduced to only timefn

benchfn used to rely on mem.h, and util,
which in turn relied on platform.h.
Using benchfn outside of zstd required to bring all these dependencies.

Now, dependency is reduced to timefn only.
This required to create a separate timefn from util,
and rewrite benchfn and timefn to no longer need mem.h.

Separating timefn from util has a wide effect accross the code base,
as usage of time functions is widespread.
A lot of build scripts had to be updated to also include timefn.

6 years agoMerge branch 'dev' into benchfn
Yann Collet [Wed, 10 Apr 2019 18:57:05 +0000 (11:57 -0700)] 
Merge branch 'dev' into benchfn

6 years agoMerge pull request #1576 from terrelln/dict-fuzz
Nick Terrell [Wed, 10 Apr 2019 18:29:15 +0000 (11:29 -0700)] 
Merge pull request #1576 from terrelln/dict-fuzz

Add new fuzzers and fix exposed bugs

6 years agoMerge pull request #1578 from orip/r-flag-typo
Nick Terrell [Wed, 10 Apr 2019 18:19:02 +0000 (11:19 -0700)] 
Merge pull request #1578 from orip/r-flag-typo

Fixed `-r` typo

6 years agominor presentation refactoring
Yann Collet [Wed, 10 Apr 2019 17:03:06 +0000 (10:03 -0700)] 
minor presentation refactoring

and removed some // comment style

6 years agoFixed `-r` typo 1578/head
Ori Peleg [Wed, 10 Apr 2019 10:37:41 +0000 (13:37 +0300)] 
Fixed `-r` typo

6 years ago[fuzzer] Use ZSTD_DCtx_loadDictionary_advanced() half the time 1576/head
Nick Terrell [Wed, 10 Apr 2019 01:02:22 +0000 (18:02 -0700)] 
[fuzzer] Use ZSTD_DCtx_loadDictionary_advanced() half the time

6 years ago[fuzzer] Make the regression_driver work while fuzzers are active
Nick Terrell [Wed, 10 Apr 2019 01:01:49 +0000 (18:01 -0700)] 
[fuzzer] Make the regression_driver work while fuzzers are active

6 years ago[libzstd] Fix ZSTD_decompressDCtx() with a dictionary
Nick Terrell [Wed, 10 Apr 2019 00:59:27 +0000 (17:59 -0700)] 
[libzstd] Fix ZSTD_decompressDCtx() with a dictionary

* `ZSTD_decompressDCtx()` did not use the dictionary loaded by
  `ZSTD_DCtx_loadDictionary()`.
* Add a unit test.
* A stacked diff uses `ZSTD_decompressDCtx()` in the
  `dictionary_round_trip` and `dictionary_decompress` fuzzers.

6 years ago[fuzzer] Sometimes fuzz with one less output byte
Nick Terrell [Tue, 9 Apr 2019 23:47:59 +0000 (16:47 -0700)] 
[fuzzer] Sometimes fuzz with one less output byte

Zstd compression sometimes does different stuff when it has at least
`ZSTD_compressBound()` output bytes, or not. Half of the time fuzz with
`ZSTD_compressBound() - 1` output bytes. Ensure that we have at least
one byte of overhead by disabling either the dictionary ID or checksum.

6 years ago[libzstd] Fix ZSTD_compress2() for multithreaded compression
Nick Terrell [Tue, 9 Apr 2019 23:24:17 +0000 (16:24 -0700)] 
[libzstd] Fix ZSTD_compress2() for multithreaded compression

`ZSTD_compress2()` wouldn't wait for multithreaded compression to
finish. We didn't find this because ZSTDMT will block when it can
compress all in one go, but it can't do that if it doesn't have enough
output space, or if `ZSTD_c_rsyncable` is enabled.

Since we will already sometimes block when using `ZSTD_e_end`, I've
changed `ZSTD_e_end` and `ZSTD_e_flush` to guarantee maximum forward
progress. This simplifies the API, and helps users avoid the easy bug
that was made in `ZSTD_compress2()`

* Found by the libfuzzer fuzzers.
* Added a test case that catches the problem.
* I will make the fuzzers sometimes allocate less than
  `ZSTD_compressBound()` output space.

6 years ago[fuzzer] Add dictionary fuzzers
Nick Terrell [Tue, 9 Apr 2019 04:07:28 +0000 (21:07 -0700)] 
[fuzzer] Add dictionary fuzzers

6 years ago[fuzzer] Fix stream_round_trip for the new options
Nick Terrell [Tue, 9 Apr 2019 04:06:19 +0000 (21:06 -0700)] 
[fuzzer] Fix stream_round_trip for the new options

6 years ago[fuzz] Use the new advanced API
Nick Terrell [Tue, 9 Apr 2019 03:01:38 +0000 (20:01 -0700)] 
[fuzz] Use the new advanced API

6 years ago[dictBuilder] Fix displayLevel for corpus warning
Nick Terrell [Tue, 9 Apr 2019 03:00:18 +0000 (20:00 -0700)] 
[dictBuilder] Fix displayLevel for corpus warning

Pass the displaylevel into the corpus warning, because it is used in
fast cover and cover, so it needs to respect the local level.

6 years ago[libzstd] Don't check the dictID in fuzzing mode
Nick Terrell [Tue, 9 Apr 2019 02:57:41 +0000 (19:57 -0700)] 
[libzstd] Don't check the dictID in fuzzing mode

When `FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION` is defined don't check
the dictID. This check makes the fuzzers job harder, and it is at the
very beginning.

6 years agoMerge pull request #1575 from terrelln/zstdmt
Nick Terrell [Mon, 8 Apr 2019 23:51:40 +0000 (16:51 -0700)] 
Merge pull request #1575 from terrelln/zstdmt

[libzstd] Remove ZSTDMT from the shared library

6 years agoRemove double the from README 1575/head
Nick Terrell [Mon, 8 Apr 2019 23:50:18 +0000 (16:50 -0700)] 
Remove double the from README

6 years ago[libzstd] Remove ZSTDMT from the shared object
Nick Terrell [Mon, 8 Apr 2019 01:47:52 +0000 (18:47 -0700)] 
[libzstd] Remove ZSTDMT from the shared object

* Remove ZSTDMT from the shared object by default.
* Provide a macro `ZSTD_LEGACY_MULTITHREADED_API` to override it.
* Document it in `lib/README.md`.

6 years agoMerge pull request #1574 from terrelln/examples
Nick Terrell [Sat, 6 Apr 2019 06:29:32 +0000 (23:29 -0700)] 
Merge pull request #1574 from terrelln/examples

Stabilize ZSTD_getDictID_*() functions and clean up examples

6 years ago[examples] Clean up and comment the examples 1574/head
Nick Terrell [Sat, 6 Apr 2019 01:11:17 +0000 (18:11 -0700)] 
[examples] Clean up and comment the examples

6 years ago[libzstd] Stabilize ZSTD_getDictID_*() functions
Nick Terrell [Sat, 6 Apr 2019 00:44:56 +0000 (17:44 -0700)] 
[libzstd] Stabilize ZSTD_getDictID_*() functions

6 years ago[libzstd] Fix return value docs for ZSTD_compressStream2()
Nick Terrell [Sat, 6 Apr 2019 00:44:07 +0000 (17:44 -0700)] 
[libzstd] Fix return value docs for ZSTD_compressStream2()

6 years agoMerge pull request #1573 from terrelln/regression
Nick Terrell [Fri, 5 Apr 2019 18:06:35 +0000 (11:06 -0700)] 
Merge pull request #1573 from terrelln/regression

[regression] Update results.csv for level 1 change

6 years agoMerge pull request #1569 from terrelln/stable
Nick Terrell [Fri, 5 Apr 2019 17:47:48 +0000 (10:47 -0700)] 
Merge pull request #1569 from terrelln/stable

Stabilize the advanced API

6 years ago[regression] Update results.csv for level 1 change 1573/head
Nick Terrell [Fri, 5 Apr 2019 17:46:22 +0000 (10:46 -0700)] 
[regression] Update results.csv for level 1 change

6 years ago[libzstd] Reword the streaming docs for the new API 1569/head
Nick Terrell [Thu, 4 Apr 2019 02:21:05 +0000 (19:21 -0700)] 
[libzstd] Reword the streaming docs for the new API

6 years agoMove the dictionary API and mark the legacy API
Nick Terrell [Thu, 4 Apr 2019 02:01:51 +0000 (19:01 -0700)] 
Move the dictionary API and mark the legacy API

* Move the dictionary API below the streaming API
* Mark the legacy streaming API as redundant

6 years agoStabilize advance API
Nick Terrell [Fri, 29 Mar 2019 01:04:32 +0000 (19:04 -0600)] 
Stabilize advance API

This commit moves the candidate advanced API to the stable section.
It makes some minor whitespace changes, but it doesn't change any
of the wording of the documentation.

I'll put up a separate PR that tweaks some of the documentation
once this lands, so that it is easier to review.

NOTE: Even though these functions are now in stable, they aren't
stable until the next release (in under 1 month). It is possible
that they change until then.

6 years ago[libzstd] Bump the library version to 1.4.0
Nick Terrell [Tue, 2 Apr 2019 01:43:32 +0000 (18:43 -0700)] 
[libzstd] Bump the library version to 1.4.0

Bumps the library version to 1.4.0 in preparation to stabilize the
advanced API.