]>
git.ipfire.org Git - thirdparty/zstd.git/log
Nick Terrell [Mon, 10 Jun 2019 18:05:45 +0000 (11:05 -0700)]
[fuzz] Remove max_len from the options
Yann Collet [Wed, 5 Jun 2019 19:30:21 +0000 (12:30 -0700)]
Merge pull request #1632 from ephiepark/dev
CircleCI : use custom Docker Image with pre-installed dependencies
Felix Handte [Wed, 5 Jun 2019 18:55:19 +0000 (14:55 -0400)]
Merge pull request #1633 from yk-tanigawa/patch-1
Update README.md
Yosuke Tanigawa [Wed, 5 Jun 2019 16:11:21 +0000 (09:11 -0700)]
Update README.md
Fix minor typo in the documentation.
Ephraim Park [Wed, 5 Jun 2019 04:14:20 +0000 (21:14 -0700)]
Merge branch 'dev' of https://github.com/ephiepark/zstd into dev
Ephraim Park [Tue, 4 Jun 2019 19:18:33 +0000 (12:18 -0700)]
circleci : remove install dependencies command from config.yml
Ephraim Park [Tue, 4 Jun 2019 18:04:51 +0000 (11:04 -0700)]
circleci : use custom docker image with installations
Ephraim Park [Wed, 5 Jun 2019 03:53:29 +0000 (20:53 -0700)]
Merge pull request #2 from ephiepark/circleci
CircleCI : use custom Docker Image with pre-installed dependencies
Yann Collet [Tue, 4 Jun 2019 22:14:35 +0000 (15:14 -0700)]
Merge pull request #1631 from ephiepark/dev
zstdcli : expose cpu load indicator for each file on -vv mode
Yann Collet [Tue, 4 Jun 2019 19:38:43 +0000 (12:38 -0700)]
Merge pull request #1629 from facebook/streamSize
Added comments on I/O buffer sizes for streaming
Ephraim Park [Tue, 4 Jun 2019 19:18:33 +0000 (12:18 -0700)]
circleci : remove install dependencies command from config.yml
Ephraim Park [Tue, 4 Jun 2019 18:04:51 +0000 (11:04 -0700)]
circleci : use custom docker image with installations
Yann Collet [Tue, 4 Jun 2019 17:35:40 +0000 (10:35 -0700)]
better title formatting for html documentation
must pay attention to /** and /*! patterns.
Yann Collet [Tue, 4 Jun 2019 17:26:16 +0000 (10:26 -0700)]
Added comments on I/O buffer sizes for streaming
It seems this is still a confusing topic,
as in https://github.com/klauspost/compress/issues/109 .
Ephraim Park [Tue, 4 Jun 2019 16:42:18 +0000 (09:42 -0700)]
zstdcli : align output message with previous message
Ephraim Park [Tue, 4 Jun 2019 16:25:16 +0000 (09:25 -0700)]
zstdcli : remove extra semicolon
Ephraim Park [Tue, 4 Jun 2019 16:23:49 +0000 (09:23 -0700)]
zstdcli : trying to fix declaration after statement
Ephraim Park [Tue, 4 Jun 2019 16:04:35 +0000 (09:04 -0700)]
zstdcli : moving cpu load calculation from FIO_compressFilename_dstFile to FIO_compressFilename_internal
Ephraim Park [Tue, 4 Jun 2019 00:36:09 +0000 (17:36 -0700)]
zstdcli : fixing mixed declarations and code error
Ephraim Park [Tue, 4 Jun 2019 00:31:14 +0000 (17:31 -0700)]
zstdcli : moving start time and cpu initialization after potential prompt
Ephraim Park [Mon, 3 Jun 2019 21:38:40 +0000 (14:38 -0700)]
zstdcli : exposing cpu load indicator for each file on -vv mode
Yann Collet [Fri, 31 May 2019 21:40:19 +0000 (14:40 -0700)]
Merge pull request #1623 from facebook/fullbench
fullbench minor improvements
Yann Collet [Thu, 30 May 2019 17:13:56 +0000 (10:13 -0700)]
consistency : changed constant name to kSampleSizeDefault
as suggested by @terrelln.
added <assert.h> include
Yann Collet [Wed, 29 May 2019 23:18:22 +0000 (16:18 -0700)]
define CONTROL, to ensure check cannot be disabled
assert() can be disabled with NDEBUG
Yann Collet [Wed, 29 May 2019 23:08:49 +0000 (16:08 -0700)]
fullbench : minor refactoring, for readability
Yann Collet [Wed, 29 May 2019 22:26:06 +0000 (15:26 -0700)]
fullbench: pass proper parameters in scenario 43
Yann Collet [Wed, 29 May 2019 01:26:21 +0000 (18:26 -0700)]
Merge pull request #1622 from facebook/nextToUpdate3
nextToUpdate3 does not need to be maintained outside of zstd_opt.c
Yann Collet [Wed, 29 May 2019 00:27:52 +0000 (17:27 -0700)]
fullbench 43: ensure context is freed after each usage
Yann Collet [Tue, 28 May 2019 23:50:49 +0000 (16:50 -0700)]
fullbench: added streaming with fresh CCtx scenario
worst case situation, where context must be recreated every time
but without knowledge of the input size
thus sizing the context for some large input.
Yann Collet [Tue, 28 May 2019 23:37:03 +0000 (16:37 -0700)]
fullbench can now select sample size with command `-B#`
Yann Collet [Tue, 28 May 2019 23:18:12 +0000 (16:18 -0700)]
removed nextToUpdate3 from ZSTD_window
it's now a local variable of ZSTD_compressBlock_opt()
Yann Collet [Tue, 28 May 2019 23:11:32 +0000 (16:11 -0700)]
get bt matches : made it a bit clearer which parameters are input and output
Yann Collet [Tue, 28 May 2019 22:26:52 +0000 (15:26 -0700)]
nextToUpdate3 does not need to be maintained outside of zstd_opt.c
It's re-synchronized with nextToUpdate at beginning of each block.
It only needs to be tracked from within zstd_opt block parser.
Made the logic clear, so that no code tried to maintain this variable.
An even better solution would be to make nextToUpdate3
an internal variable of ZSTD_compressBlock_opt_generic().
That would make it possible to remove it from ZSTD_matchState_t,
thus restricting its visibility to only where it's actually useful.
This would require deeper changes though,
since the matchState is the natural structure to transport parameters into and inside the parser.
Yann Collet [Tue, 28 May 2019 21:12:16 +0000 (14:12 -0700)]
complementary code comments
on variables used / impacted during maxDist check
Yann Collet [Tue, 28 May 2019 20:15:48 +0000 (13:15 -0700)]
added comments to better understand enforceMaxDist()
Felix Handte [Sat, 25 May 2019 00:59:11 +0000 (20:59 -0400)]
Merge pull request #1618 from felixhandte/zstgrep-f-flag
Handle `-f` Flag in `zstgrep`
W. Felix Handte [Fri, 24 May 2019 21:21:44 +0000 (17:21 -0400)]
Add Test
W. Felix Handte [Fri, 24 May 2019 20:55:59 +0000 (16:55 -0400)]
zstdgrep: Handle -f Flag
W. Felix Handte [Fri, 24 May 2019 20:55:43 +0000 (16:55 -0400)]
Build Manual
Tyler-Tran [Thu, 23 May 2019 01:57:50 +0000 (18:57 -0700)]
[dictBuilder] Be more specific than ERROR(generic) (#1616)
* Specify errors at a finer granularity than `ERROR(generic)`.
* Add tests for bad parameters in the dictionary builder.
Nick Terrell [Tue, 7 May 2019 00:12:03 +0000 (17:12 -0700)]
Merge pull request #1613 from neheb/patch-1
fileio: Disable BACKTRACE under uClibc
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.
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
Nick Terrell [Thu, 2 May 2019 21:35:25 +0000 (14:35 -0700)]
[tests] Only sleep 10ms in poolTests
Nick Terrell [Thu, 2 May 2019 20:23:41 +0000 (13:23 -0700)]
[test] Fix poolTests deadlock and flakiness
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
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
Lzu Tao [Tue, 30 Apr 2019 06:12:00 +0000 (13:12 +0700)]
meson: Error out if fail to extracted version number
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
cev [Mon, 29 Apr 2019 22:47:47 +0000 (18:47 -0400)]
add test for zstdcat and zcat on symlink
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
cev [Sat, 27 Apr 2019 23:06:29 +0000 (19:06 -0400)]
set followLinks option true to cat, zcat and gzcat programs
sjnam [Sat, 27 Apr 2019 20:05:45 +0000 (05:05 +0900)]
fix test fail
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
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
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
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
Nick Terrell [Tue, 23 Apr 2019 21:22:16 +0000 (14:22 -0700)]
[libzstd] Add a ZSTD_STATIC_ASSERT for BIT_DStream_status
Nick Terrell [Tue, 23 Apr 2019 21:07:36 +0000 (14:07 -0700)]
[libzstd] Error if all sequence bits aren't consumed
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()
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`.
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
Nick Terrell [Thu, 18 Apr 2019 23:20:42 +0000 (16:20 -0700)]
[legacy] Fix Huffman jump table reads in v01 and v05
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
Nick Terrell [Thu, 18 Apr 2019 22:06:56 +0000 (15:06 -0700)]
[paramgrill] Fix mingw build errors
Nick Terrell [Thu, 18 Apr 2019 19:24:47 +0000 (12:24 -0700)]
[legacy] Fix bug in ZSTD_decodeSeqHeaders()
Nick Terrell [Thu, 18 Apr 2019 20:33:26 +0000 (13:33 -0700)]
[legacy] Fix a bug in ZSTDv06_findFrameSizeInfoLegacy()
Nick Terrell [Thu, 18 Apr 2019 19:44:55 +0000 (12:44 -0700)]
[fuzzer] Compile with legacy support
Nick Terrell [Thu, 18 Apr 2019 19:44:21 +0000 (12:44 -0700)]
[fuzzer] Size the decompression output buffer randomly
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
Nick Terrell [Wed, 17 Apr 2019 19:13:06 +0000 (12:13 -0700)]
[fuzz] Add a seedcorpora target for oss-fuzz
Nick Terrell [Wed, 17 Apr 2019 18:41:55 +0000 (11:41 -0700)]
[libzstd] Check the size in readSkippableFrameSize()
Nick Terrell [Wed, 17 Apr 2019 18:34:52 +0000 (11:34 -0700)]
[legacy] Return the right error code
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()`.
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.
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
Nick Terrell [Tue, 16 Apr 2019 17:22:47 +0000 (10:22 -0700)]
[visual] Fix unreachable code warning
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
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.
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.
Nick Terrell [Tue, 16 Apr 2019 04:01:27 +0000 (21:01 -0700)]
[fullbench] Fix measurements
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
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 .
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
Nick Terrell [Mon, 15 Apr 2019 20:57:42 +0000 (13:57 -0700)]
Update the changelog for zstd-1.4.0
Nick Terrell [Mon, 15 Apr 2019 20:57:14 +0000 (13:57 -0700)]
Update benchmarks in README
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
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
Lzu Tao [Fri, 12 Apr 2019 16:43:34 +0000 (23:43 +0700)]
travis: Make Mesonbuild non-optional
Lzu Tao [Fri, 12 Apr 2019 14:28:36 +0000 (21:28 +0700)]
meson: Fix build
Lzu Tao [Fri, 12 Apr 2019 14:28:17 +0000 (21:28 +0700)]
tests: Add missing header timefn.h
Yann Collet [Thu, 11 Apr 2019 21:23:04 +0000 (14:23 -0700)]
Merge pull request #1581 from facebook/benchfn
benchfn's reduced dependencies
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.
Yann Collet [Thu, 11 Apr 2019 19:25:27 +0000 (12:25 -0700)]
fixed minor conversion warning
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.
Yann Collet [Thu, 11 Apr 2019 16:50:39 +0000 (09:50 -0700)]
fixed poolTests
added poolTests to all
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
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
Yann Collet [Thu, 11 Apr 2019 00:47:01 +0000 (17:47 -0700)]
fixed cmake build script for test programs
Nick Terrell [Wed, 10 Apr 2019 23:50:35 +0000 (16:50 -0700)]
[libzstd] Switch dictUses to an enum