]>
git.ipfire.org Git - thirdparty/zstd.git/log
Nick Terrell [Thu, 20 Oct 2016 23:45:10 +0000 (16:45 -0700)]
Fix small bug in ZSTD_execSequence()
`memmove(op, match, sequence.matchLength)` is not the desired behavior.
Overlap is allowed, and handled as if we did `*op++ = *match++`, which
is not how `memmove()` handles overlap.
Only triggered if both of the following conditions are met:
* The match spans extDict & currentPrefixSegment
* `oLitEnd <= oend_w < oLitEnd + length1 < oMatchEnd <= oend`.
These two conditions imply that the block is less than 15 bytes long.
This bug isn't triggered by the streaming API, because it allocates
enough space for the window size + the block size, so there cannot be
a match that is within 8 bytes of the end and overlaps with itself.
It cannot be triggered by the block decompression API because all of
the decompressed data is in the currentPrefixSegment.
Introduced by commit
71585843998459e636f639165ff8a1ca9d161b62
Yann Collet [Tue, 18 Oct 2016 23:34:58 +0000 (16:34 -0700)]
improved dicitonary segment merge
Yann Collet [Tue, 18 Oct 2016 23:01:03 +0000 (16:01 -0700)]
use implicit rules to compile zstd_decompress.c
Yann Collet [Tue, 18 Oct 2016 20:48:32 +0000 (13:48 -0700)]
detect early impossible decompression scenario in legacy decoder v0.5
Yann Collet [Tue, 18 Oct 2016 20:36:15 +0000 (13:36 -0700)]
no repeat mode in legacy v0.5
Yann Collet [Tue, 18 Oct 2016 19:25:43 +0000 (12:25 -0700)]
fixed invalid invocation of dictionary in legacy decoder v0.5
Yann Collet [Tue, 18 Oct 2016 18:27:52 +0000 (11:27 -0700)]
fix edge case
Yann Collet [Tue, 18 Oct 2016 00:48:48 +0000 (17:48 -0700)]
fix command line interpretation
Yann Collet [Tue, 18 Oct 2016 00:28:28 +0000 (17:28 -0700)]
fixed minor corner case
Yann Collet [Fri, 14 Oct 2016 23:03:34 +0000 (16:03 -0700)]
minor opt
Yann Collet [Fri, 14 Oct 2016 21:41:17 +0000 (14:41 -0700)]
refactor for long commands
Yann Collet [Fri, 14 Oct 2016 21:22:32 +0000 (14:22 -0700)]
added long commands --memory= and --memlimit-decompress=
Yann Collet [Fri, 14 Oct 2016 21:07:11 +0000 (14:07 -0700)]
added long comment --memlimit=
Yann Collet [Fri, 14 Oct 2016 20:32:35 +0000 (13:32 -0700)]
Merge branch 'dev' of github.com:facebook/zstd into dev
Yann Collet [Fri, 14 Oct 2016 20:13:13 +0000 (13:13 -0700)]
new command -M#, to limit memory usage during decompression (#403)
Yann Collet [Thu, 13 Oct 2016 10:37:22 +0000 (03:37 -0700)]
Merge pull request #417 from terrelln/ubsan-failures
Fix ubsan failures (pass NULL to memcpy)
Nick Terrell [Thu, 13 Oct 2016 03:54:42 +0000 (20:54 -0700)]
Fix ubsan failures (pass NULL to memcpy)
Yann Collet [Thu, 13 Oct 2016 00:28:59 +0000 (17:28 -0700)]
added ZSTD_error_frameParameter_windowTooLarge (#403)
Yann Collet [Wed, 12 Oct 2016 22:29:22 +0000 (15:29 -0700)]
updated visual projects
Yann Collet [Wed, 12 Oct 2016 19:23:11 +0000 (12:23 -0700)]
Merge pull request #406 from pixelb/pzstd-test-headless
pzstd: fix test failure on headless build
Yann Collet [Wed, 12 Oct 2016 18:09:36 +0000 (11:09 -0700)]
make creates libzstd binaries (#415)
Yann Collet [Wed, 12 Oct 2016 17:23:53 +0000 (10:23 -0700)]
fix cmake
Yann Collet [Wed, 12 Oct 2016 17:17:53 +0000 (10:17 -0700)]
Merge pull request #416 from terrelln/exec-sequence
Fix ZSTD_execSequence() edge case
Nick Terrell [Mon, 10 Oct 2016 23:19:21 +0000 (16:19 -0700)]
Fix ZSTD_execSequence() edge case
Yann Collet [Wed, 12 Oct 2016 00:29:27 +0000 (17:29 -0700)]
bumped version number
Yann Collet [Wed, 12 Oct 2016 00:24:50 +0000 (17:24 -0700)]
created error_private.c, so that a single list of error strings get included
Yann Collet [Tue, 11 Oct 2016 23:51:29 +0000 (16:51 -0700)]
added zstd_errors.h to include installation
Yann Collet [Tue, 11 Oct 2016 23:41:09 +0000 (16:41 -0700)]
changed error_public.h into zstd_errors.h
Yann Collet [Tue, 11 Oct 2016 23:11:48 +0000 (16:11 -0700)]
Merge pull request #414 from terrelln/license
Remove references to GPLv2 license
Nick Terrell [Tue, 11 Oct 2016 22:27:44 +0000 (15:27 -0700)]
Remove references to GPLv2 license
License headers added to Makefiles were taken from `zstd/Makefile`.
Yann Collet [Tue, 11 Oct 2016 15:21:09 +0000 (08:21 -0700)]
sync fse
Pádraig Brady [Thu, 6 Oct 2016 14:13:10 +0000 (15:13 +0100)]
pzstd: fix test failure on headless build
Remove this test as pass/fail status is
dependent on whether I/O is connected to a tty.
It currrently passes on a tty but fails on
a package build system for example.
Yann Collet [Wed, 5 Oct 2016 15:56:47 +0000 (17:56 +0200)]
Merge pull request #401 from inikep/dev
Dev
inikep [Wed, 5 Oct 2016 11:41:37 +0000 (13:41 +0200)]
.travis.yml: added "make clean" before versionsTest
inikep [Wed, 5 Oct 2016 10:17:51 +0000 (12:17 +0200)]
Merge remote-tracking branch 'refs/remotes/facebook/dev' into dev
inikep [Wed, 5 Oct 2016 09:56:22 +0000 (11:56 +0200)]
fixed Makefile targets: zstd-small, zstd-decompress, zstd-compress
inikep [Mon, 3 Oct 2016 12:19:30 +0000 (14:19 +0200)]
zlibWrapper: updated README.md
inikep [Wed, 28 Sep 2016 11:23:11 +0000 (13:23 +0200)]
updated .gitignore
inikep [Wed, 28 Sep 2016 10:46:22 +0000 (12:46 +0200)]
Merge remote-tracking branch 'refs/remotes/origin/zlibWrapper' into dev
inikep [Wed, 28 Sep 2016 10:23:07 +0000 (12:23 +0200)]
RES files for zstd 1.1.0
Yann Collet [Tue, 27 Sep 2016 22:15:03 +0000 (00:15 +0200)]
updated NEWS
Yann Collet [Tue, 27 Sep 2016 22:07:39 +0000 (00:07 +0200)]
Merge pull request #393 from inikep/zlibWrapper
Zlibwrapper
inikep [Tue, 27 Sep 2016 16:21:17 +0000 (18:21 +0200)]
ZSTD_resetDStream moved to inflate()
inikep [Tue, 27 Sep 2016 15:27:43 +0000 (17:27 +0200)]
renamed to ZWRAP_deflateReset_keepDict
inikep [Tue, 27 Sep 2016 15:14:04 +0000 (17:14 +0200)]
redirection to deflateReset and inflateReset
inikep [Tue, 27 Sep 2016 14:56:07 +0000 (16:56 +0200)]
added ZWRAP_deflateResetWithoutDict and ZWRAP_inflateResetWithoutDict
inikep [Tue, 27 Sep 2016 13:25:20 +0000 (15:25 +0200)]
updated description of ZWRAP_setPledgedSrcSize
inikep [Tue, 27 Sep 2016 13:24:44 +0000 (15:24 +0200)]
improved speed of deflate without Z_FINISH
Yann Collet [Tue, 27 Sep 2016 13:14:32 +0000 (15:14 +0200)]
update dictionary builder warning comments
Yann Collet [Mon, 26 Sep 2016 22:32:05 +0000 (00:32 +0200)]
Merge pull request #384 from inikep/zlibWrapper
Zlibwrapper
inikep [Mon, 26 Sep 2016 20:47:39 +0000 (22:47 +0200)]
zlibWrapper: minor tweaks
inikep [Mon, 26 Sep 2016 20:24:04 +0000 (22:24 +0200)]
updated zlibWrapper\Makefile
inikep [Mon, 26 Sep 2016 20:11:55 +0000 (22:11 +0200)]
zwrapbench: improved tests with a dictionary
inikep [Mon, 26 Sep 2016 20:11:08 +0000 (22:11 +0200)]
updated results in zlibWrapper\README.md
inikep [Mon, 26 Sep 2016 18:57:01 +0000 (20:57 +0200)]
Merge remote-tracking branch 'refs/remotes/facebook/dev' into zlibWrapper
inikep [Mon, 26 Sep 2016 18:49:18 +0000 (20:49 +0200)]
improved behavior of deflateReset
inikep [Mon, 26 Sep 2016 18:41:52 +0000 (20:41 +0200)]
improved zwrapbench tests
Yann Collet [Mon, 26 Sep 2016 16:03:33 +0000 (18:03 +0200)]
added comment on filePos
Yann Collet [Mon, 26 Sep 2016 14:41:05 +0000 (16:41 +0200)]
fixed : init*_advanced() followed by reset() with different pledgedSrcSiz
Yann Collet [Mon, 26 Sep 2016 12:06:08 +0000 (14:06 +0200)]
zstreamtest can fuzztest pledgedSrcSize
Yann Collet [Sat, 24 Sep 2016 23:34:03 +0000 (01:34 +0200)]
zstreamtest uses ZSTD_reset?Stream
Yann Collet [Sat, 24 Sep 2016 09:52:29 +0000 (11:52 +0200)]
Merge pull request #387 from terrelln/display
[pzstd] Print (de)compression results
Nick Terrell [Fri, 23 Sep 2016 22:47:26 +0000 (15:47 -0700)]
[pzstd] Add status update for MB written
Yann Collet [Fri, 23 Sep 2016 21:41:20 +0000 (23:41 +0200)]
Merge pull request #386 from terrelln/readme
[pzstd] Update README
Yann Collet [Fri, 23 Sep 2016 21:40:04 +0000 (23:40 +0200)]
Merge pull request #385 from KrzysFR/patch-1
Update .gitignore for new location of msbuild projects
Nick Terrell [Fri, 23 Sep 2016 21:38:25 +0000 (14:38 -0700)]
[pzstd] Add header required for Visual Studios
Nick Terrell [Fri, 23 Sep 2016 19:55:21 +0000 (12:55 -0700)]
[pzstd] Print (de)compression results
Nick Terrell [Fri, 23 Sep 2016 20:07:54 +0000 (13:07 -0700)]
[pzstd] Update README to reflect new CLI
Christophe Chevalier [Fri, 23 Sep 2016 19:47:27 +0000 (21:47 +0200)]
Update .gitignore for new location of msbuild projects
It seems that when the projects folder was moved to the new path in
cfe5fe45819804b6ef148dc8524fcec1fcd1fc43 , the `build/bin` was changed to `build/` instead of `bin/` and building makes a lot of stuff show up in git.
inikep [Fri, 23 Sep 2016 19:32:16 +0000 (21:32 +0200)]
zlibWrapper\README.md: reordering
inikep [Fri, 23 Sep 2016 19:14:37 +0000 (21:14 +0200)]
typo in pzstd
inikep [Fri, 23 Sep 2016 18:03:20 +0000 (20:03 +0200)]
Merge remote-tracking branch 'refs/remotes/facebook/dev' into zlibWrapper
inikep [Fri, 23 Sep 2016 18:03:17 +0000 (20:03 +0200)]
zlibWrapper\README.md: minor tweaks
inikep [Fri, 23 Sep 2016 16:59:53 +0000 (18:59 +0200)]
zlibWrapper\README.md: Reusing contexts
Yann Collet [Fri, 23 Sep 2016 16:04:28 +0000 (18:04 +0200)]
Merge pull request #383 from KrzysFR/fix_issue_379
Add support for Legacy format to Visual Studios solutions
Christophe Chevalier [Fri, 23 Sep 2016 15:09:36 +0000 (17:09 +0200)]
Changed to use ZSTDLIBv06_API and ZSTDLIBv07_API for DLL exports to fix warning
- changed name to prevent collision with ZSTDLIB_API used by non-legacy dll exports
inikep [Fri, 23 Sep 2016 14:20:13 +0000 (16:20 +0200)]
updated zlibWrapper\README.md
Christophe Chevalier [Fri, 23 Sep 2016 13:48:34 +0000 (15:48 +0200)]
Add legacy support for VS2005 solution
- define ZSTD_LEGACY_SUPPORT to 1
- do not define ZSTD_HEAPMODE
Christophe Chevalier [Fri, 23 Sep 2016 13:46:21 +0000 (15:46 +0200)]
Add legacy support for VS2008 solution
- define ZSTD_LEGACY_SUPPORT to 1
- do not define ZSTD_HEAPMODE
Christophe Chevalier [Fri, 23 Sep 2016 13:40:33 +0000 (15:40 +0200)]
Fix for Issue #379 - add legacy support to VS2010 sln
- set ZSTD_LEGACY_SUPPORT to 1
- Do not define ZSTD_HEADMODE (which will be fallback to 1)
inikep [Fri, 23 Sep 2016 12:59:46 +0000 (14:59 +0200)]
faster inflate() autodetection of zlib/zstd
inikep [Fri, 23 Sep 2016 11:38:02 +0000 (13:38 +0200)]
use valgrind with a dynamic zstd library
Yann Collet [Fri, 23 Sep 2016 11:09:45 +0000 (13:09 +0200)]
Merge pull request #382 from terrelln/dev
[pzstd] CLI + memory usage + 32 bit mode
inikep [Fri, 23 Sep 2016 10:42:21 +0000 (12:42 +0200)]
initialization of strm->adler
inikep [Fri, 23 Sep 2016 10:01:38 +0000 (12:01 +0200)]
improved valgrind tests
inikep [Fri, 23 Sep 2016 08:43:37 +0000 (10:43 +0200)]
added valgrindTest for zlibWrapper
inikep [Fri, 23 Sep 2016 08:30:26 +0000 (10:30 +0200)]
ZWRAP_setPledgedSrcSize not required with Z_FINISH
inikep [Fri, 23 Sep 2016 07:08:40 +0000 (09:08 +0200)]
a new ZWRAP API
Nick Terrell [Fri, 23 Sep 2016 02:00:54 +0000 (19:00 -0700)]
[pzstd] Add tests to appveyor MinGW64
Nick Terrell [Fri, 23 Sep 2016 01:59:22 +0000 (18:59 -0700)]
[pzstd] Spawn less threads in tests
MinGW thread performance degrades significantly when there are
a lot of threads, so limit the number of threads spawned to ~10.
Nick Terrell [Fri, 23 Sep 2016 01:02:39 +0000 (18:02 -0700)]
Don't redefine macro in util.h
Nick Terrell [Fri, 23 Sep 2016 00:45:24 +0000 (17:45 -0700)]
[pzstd] Add 32 bit tests to travis-ci
Nick Terrell [Fri, 23 Sep 2016 00:12:50 +0000 (17:12 -0700)]
Add include guards to datagen.h
Nick Terrell [Thu, 22 Sep 2016 23:12:29 +0000 (16:12 -0700)]
[pzstd] Turn on warnings + quiet them
inikep [Thu, 22 Sep 2016 16:06:58 +0000 (18:06 +0200)]
Merge remote-tracking branch 'refs/remotes/facebook/dev' into zlibWrapper
inikep [Thu, 22 Sep 2016 15:59:10 +0000 (17:59 +0200)]
zwrapbench: testing reusing of a context
Yann Collet [Thu, 22 Sep 2016 13:57:56 +0000 (15:57 +0200)]
Merge branch 'dev' of github.com:Cyan4973/zstd into dev
Yann Collet [Thu, 22 Sep 2016 13:57:28 +0000 (15:57 +0200)]
small decompression speed boost for very small data
inikep [Thu, 22 Sep 2016 13:55:01 +0000 (15:55 +0200)]
zwrapbench: testing speed of ZSTD_decompressStream
inikep [Thu, 22 Sep 2016 12:42:32 +0000 (14:42 +0200)]
zwrapbench benchmarks zlibWrapper