]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
8 years agoMerge remote-tracking branch 'refs/remotes/facebook/dev' into dev11 553/head
Przemyslaw Skibinski [Mon, 20 Feb 2017 10:11:42 +0000 (11:11 +0100)] 
Merge remote-tracking branch 'refs/remotes/facebook/dev' into dev11

8 years agoupdated NEWS with meson build by Dima Krasner
Yann Collet [Mon, 20 Feb 2017 09:26:05 +0000 (01:26 -0800)] 
updated NEWS with meson build by Dima Krasner

8 years agoMerge pull request #551 from dimkr/meson
Yann Collet [Mon, 20 Feb 2017 09:23:51 +0000 (01:23 -0800)] 
Merge pull request #551 from dimkr/meson

Added a Meson-based build system

8 years agoMoved to contrib 551/head
Dima Krasner [Sat, 18 Feb 2017 21:30:57 +0000 (23:30 +0200)] 
Moved to contrib

8 years agoAdded a message when multhread=true
Dima Krasner [Fri, 17 Feb 2017 10:32:16 +0000 (12:32 +0200)] 
Added a message when multhread=true

8 years agoUpdated the README
Dima Krasner [Fri, 17 Feb 2017 10:29:23 +0000 (12:29 +0200)] 
Updated the README

8 years agoAdded multi-threaded library support
Dima Krasner [Fri, 17 Feb 2017 10:27:13 +0000 (12:27 +0200)] 
Added multi-threaded library support

8 years agocircle.yml: set FUZZERTEST=-T4mn
Przemyslaw Skibinski [Fri, 17 Feb 2017 06:54:37 +0000 (07:54 +0100)] 
circle.yml: set FUZZERTEST=-T4mn

8 years agoMerge remote-tracking branch 'refs/remotes/facebook/dev' into dev11
Przemyslaw Skibinski [Fri, 17 Feb 2017 06:48:14 +0000 (07:48 +0100)] 
Merge remote-tracking branch 'refs/remotes/facebook/dev' into dev11

8 years agoMerge pull request #550 from iburinoc/matchoverlenwrite
Yann Collet [Fri, 17 Feb 2017 02:14:47 +0000 (18:14 -0800)] 
Merge pull request #550 from iburinoc/matchoverlenwrite

execSequence copies up to 2*WILDCOPY_OVERLENGTH extra

8 years agoMerge pull request #548 from inikep/gz_compress
Yann Collet [Thu, 16 Feb 2017 22:57:59 +0000 (14:57 -0800)] 
Merge pull request #548 from inikep/gz_compress

Circle CI tests

8 years agoUpdate overlength match test case 550/head
Sean Purcell [Thu, 16 Feb 2017 21:29:47 +0000 (13:29 -0800)] 
Update overlength match test case

8 years agoexecSequence copies up to 2*WILDCOPY_OVERLENGTH extra
Sean Purcell [Thu, 16 Feb 2017 20:05:40 +0000 (12:05 -0800)] 
execSequence copies up to 2*WILDCOPY_OVERLENGTH extra

8 years agocircle.yml: make travis-install 548/head
Przemyslaw Skibinski [Thu, 16 Feb 2017 18:04:22 +0000 (19:04 +0100)] 
circle.yml: make travis-install

8 years agofaster start of containers
Przemyslaw Skibinski [Thu, 16 Feb 2017 17:45:17 +0000 (18:45 +0100)] 
faster start of containers

8 years agoAdded a Meson project
Dima Krasner [Thu, 16 Feb 2017 17:35:56 +0000 (19:35 +0200)] 
Added a Meson project

8 years agojoin tests into pairs
Przemyslaw Skibinski [Thu, 16 Feb 2017 17:19:36 +0000 (18:19 +0100)] 
join tests into pairs

8 years agomove MOREFLAGS to circle.yml
Przemyslaw Skibinski [Thu, 16 Feb 2017 16:52:49 +0000 (17:52 +0100)] 
move MOREFLAGS to circle.yml

8 years agoMerge pull request #549 from iburinoc/matchoverlenwrite
Yann Collet [Thu, 16 Feb 2017 16:39:52 +0000 (08:39 -0800)] 
Merge pull request #549 from iburinoc/matchoverlenwrite

Fix wildcopy overwriting data still in window

8 years agomore balanced tests
Przemyslaw Skibinski [Thu, 16 Feb 2017 15:27:40 +0000 (16:27 +0100)] 
more balanced tests

8 years agotwo groups of tests
Przemyslaw Skibinski [Thu, 16 Feb 2017 14:59:00 +0000 (15:59 +0100)] 
two groups of tests

8 years agoimproved clangtest
Przemyslaw Skibinski [Thu, 16 Feb 2017 14:28:08 +0000 (15:28 +0100)] 
improved clangtest

8 years agoimporved test-zstd
Przemyslaw Skibinski [Thu, 16 Feb 2017 14:13:33 +0000 (15:13 +0100)] 
imporved test-zstd

8 years agoTests for thread 1 (when CIRCLE_NODE_TOTAL=1) or thread 2
Przemyslaw Skibinski [Thu, 16 Feb 2017 13:39:21 +0000 (14:39 +0100)] 
Tests for thread 1 (when CIRCLE_NODE_TOTAL=1) or thread 2

8 years agofinal colon
Przemyslaw Skibinski [Thu, 16 Feb 2017 12:51:21 +0000 (13:51 +0100)] 
final colon

8 years agocheck CIRCLE_NODE_TOTAL
Przemyslaw Skibinski [Thu, 16 Feb 2017 12:45:40 +0000 (13:45 +0100)] 
check CIRCLE_NODE_TOTAL

8 years agocheck $CIRCLE_NODE_INDEX
Przemyslaw Skibinski [Thu, 16 Feb 2017 12:36:12 +0000 (13:36 +0100)] 
check $CIRCLE_NODE_INDEX

8 years agocircle.yml: run only short tests
Przemyslaw Skibinski [Thu, 16 Feb 2017 12:08:30 +0000 (13:08 +0100)] 
circle.yml: run only short tests

8 years agofix travis.yml
Przemyslaw Skibinski [Thu, 16 Feb 2017 11:33:25 +0000 (12:33 +0100)] 
fix travis.yml

8 years ago.travis.yml: detect "$TRAVIS_EVENT_TYPE" = "cron"
Przemyslaw Skibinski [Thu, 16 Feb 2017 11:29:08 +0000 (12:29 +0100)] 
.travis.yml: detect "$TRAVIS_EVENT_TYPE" = "cron"

8 years agoFix wildcopy overwriting data still in window 549/head
Sean Purcell [Thu, 16 Feb 2017 00:43:45 +0000 (16:43 -0800)] 
Fix wildcopy overwriting data still in window

8 years agoMerge branch 'dev' of github.com:facebook/zstd into dev
Yann Collet [Wed, 15 Feb 2017 20:00:50 +0000 (12:00 -0800)] 
Merge branch 'dev' of github.com:facebook/zstd into dev

8 years agoupdated fse version
Yann Collet [Wed, 15 Feb 2017 20:00:03 +0000 (12:00 -0800)] 
updated fse version

feature minor refactoring (removing FSE_abs())
also : fix a few minor issues recently introduced in examples

8 years agoMerge pull request #545 from terrelln/force-window
Yann Collet [Wed, 15 Feb 2017 18:20:15 +0000 (10:20 -0800)] 
Merge pull request #545 from terrelln/force-window

[zstdmt] Fix MSAN failure with ZSTD_p_forceWindow

8 years agouse FindFirstFileA instead of FindFirstFile
Przemyslaw Skibinski [Wed, 15 Feb 2017 16:13:35 +0000 (17:13 +0100)] 
use FindFirstFileA instead of FindFirstFile

8 years agoadded UTIL_fseek
Przemyslaw Skibinski [Wed, 15 Feb 2017 16:03:16 +0000 (17:03 +0100)] 
added UTIL_fseek

8 years agosimplified zlib detection
Przemyslaw Skibinski [Wed, 15 Feb 2017 08:17:39 +0000 (09:17 +0100)] 
simplified zlib detection

8 years agoMerge remote-tracking branch 'refs/remotes/facebook/dev' into dev11
Przemyslaw Skibinski [Wed, 15 Feb 2017 08:10:08 +0000 (09:10 +0100)] 
Merge remote-tracking branch 'refs/remotes/facebook/dev' into dev11

8 years agoadded -I/usr/include/x86_64-linux-gnu for asan32
Przemyslaw Skibinski [Tue, 14 Feb 2017 22:30:23 +0000 (23:30 +0100)] 
added -I/usr/include/x86_64-linux-gnu for asan32

8 years agoMerge pull request #547 from inikep/dev11
Yann Collet [Tue, 14 Feb 2017 20:29:00 +0000 (12:29 -0800)] 
Merge pull request #547 from inikep/dev11

Avoid fseek()'s 2GiB barrier with MacOS and *BSD

8 years agoadded circle.yml
Przemyslaw Skibinski [Tue, 14 Feb 2017 19:06:41 +0000 (20:06 +0100)] 
added circle.yml

8 years agoMerge remote-tracking branch 'refs/remotes/facebook/dev' into gz_compress
Przemyslaw Skibinski [Tue, 14 Feb 2017 19:04:56 +0000 (20:04 +0100)] 
Merge remote-tracking branch 'refs/remotes/facebook/dev' into gz_compress

8 years agopreset behavior for gzip, gunzip and gzcat
Yann Collet [Tue, 14 Feb 2017 18:45:19 +0000 (10:45 -0800)] 
preset behavior for gzip, gunzip and gzcat

when zstd is called through a link named gzip, gunzip or gzcat,
provides the same behavior as the related program.
gzip compresses using --format=gz
both gzip and gunzip enable --rm by default

8 years agoMerge pull request #543 from inikep/gz_compress
Yann Collet [Tue, 14 Feb 2017 18:30:22 +0000 (10:30 -0800)] 
Merge pull request #543 from inikep/gz_compress

Gz compress

8 years agoDon't run test-pool with QEMU 545/head
Nick Terrell [Tue, 14 Feb 2017 18:08:14 +0000 (10:08 -0800)] 
Don't run test-pool with QEMU

    > make test -n
    ...
    ./pool
    > make test -n QEMU_SYS=valgrind
    ...
    ./legacy
    # ./pool not run

8 years agoMerge pull request #544 from ds77/avoid-empty
Yann Collet [Tue, 14 Feb 2017 08:54:55 +0000 (00:54 -0800)] 
Merge pull request #544 from ds77/avoid-empty

Portable way to avoid empty unit warning in threading.c

8 years agofix LONG_SEEK 547/head
Przemyslaw Skibinski [Tue, 14 Feb 2017 08:52:52 +0000 (09:52 +0100)] 
fix LONG_SEEK

8 years agoMerge pull request #546 from zefanxu/dev
Yann Collet [Tue, 14 Feb 2017 08:49:06 +0000 (00:49 -0800)] 
Merge pull request #546 from zefanxu/dev

fix memory leak

8 years agofixed function name (2) 543/head
Przemyslaw Skibinski [Tue, 14 Feb 2017 08:47:29 +0000 (09:47 +0100)] 
fixed function name (2)

8 years agoAvoid fseek()'s 2GiB barrier with MacOS and *BSD
Przemyslaw Skibinski [Tue, 14 Feb 2017 08:45:33 +0000 (09:45 +0100)] 
Avoid fseek()'s 2GiB barrier with MacOS and *BSD

8 years agoWindows resources updated to v1.1.4
Przemyslaw Skibinski [Tue, 14 Feb 2017 08:39:09 +0000 (09:39 +0100)] 
Windows resources updated to v1.1.4

8 years agoremoved UTIL_doesFileExists (replaced with UTIL_isRegFile)
Przemyslaw Skibinski [Tue, 14 Feb 2017 08:38:51 +0000 (09:38 +0100)] 
removed UTIL_doesFileExists (replaced with UTIL_isRegFile)

8 years agoMerge remote-tracking branch 'refs/remotes/facebook/dev' into dev11
Przemyslaw Skibinski [Tue, 14 Feb 2017 08:26:03 +0000 (09:26 +0100)] 
Merge remote-tracking branch 'refs/remotes/facebook/dev' into dev11

8 years agofixed function name
Przemyslaw Skibinski [Tue, 14 Feb 2017 08:23:32 +0000 (09:23 +0100)] 
fixed function name

8 years agofix memory leak 546/head
zefanxu2 [Tue, 14 Feb 2017 03:12:59 +0000 (21:12 -0600)] 
fix memory leak

8 years ago[zstdmt] Fix MSAN failure with ZSTD_p_forceWindow
Nick Terrell [Tue, 14 Feb 2017 02:27:34 +0000 (18:27 -0800)] 
[zstdmt] Fix MSAN failure with ZSTD_p_forceWindow

Reproduction steps:

```
make zstreamtest CC=clang CFLAGS="-O3 -g -fsanitize=memory -fsanitize-memory-track-origins"
./zstreamtest -vv -t4178 -i4178 -s4531
```

How to get to the error in gdb (may be a more efficient way):

* 2 breaks at zstd_compress.c:2418  -- in ZSTD_compressContinue_internal()
* 2 breaks at zstd_compress.c:2276  -- in ZSTD_compressBlock_internal()
* 1 break at zstd_compress.c:1547

Why the error occurred:

When `zc->forceWindow == 1`, after calling `ZSTD_loadDictionaryContent()` we
have `zc->loadedDictEnd == zc->nextToUpdate == 0`. But, we've really loaded up
to `iend` into the dictionary. Then in `ZSTD_compressBlock_internal()` we see
that `current > zc->nextToUpdate + 384`, so we load the last 192 bytes a second
time. In this case the bytes we are loading are a block of all 0s, starting in
the previous block. So when we are loading the last 192 bytes, we find a `match`
in the future, 183 bytes beyond `ip`. Since the block is all 0s, the match
extends to the end of the block. But in `ZSTD_count()` we only check that
`pIn < pInLoopLimit`, but since `pMatch > pIn`, `pMatch` eventually points past
the end of the buffer, causing the MSAN failure.

The fix:

The line changed sets sets `zc->nextToUpdate` to the end of the dictionary.
This is the behavior that existed before `ZSTD_p_forceWindow` was introduced.
This fixes the exposing test case. Since the code doesn't fail without
`zc->forceWindow`, it makes sense that this works. I've run the command
`./zstreamtest -T2mn` 64 times without failures. CI should also verify nothing
obvious broke.

8 years agopush version and NEWS to v1.1.4
Yann Collet [Tue, 14 Feb 2017 02:32:12 +0000 (18:32 -0800)] 
push version and NEWS to v1.1.4

8 years agoavoid empty translation unit warning without #pragma 544/head
ds77 [Mon, 13 Feb 2017 23:14:24 +0000 (00:14 +0100)] 
avoid empty translation unit warning without #pragma

8 years agofixed unitialized variable warning
Przemyslaw Skibinski [Mon, 13 Feb 2017 21:56:31 +0000 (22:56 +0100)] 
fixed unitialized variable warning

8 years agoResolve conflict with branch 'refs/remotes/facebook/dev'
Przemyslaw Skibinski [Mon, 13 Feb 2017 20:35:39 +0000 (21:35 +0100)] 
Resolve conflict with branch 'refs/remotes/facebook/dev'

# Conflicts:
# programs/fileio.c

8 years agoMerge pull request #536 from iburinoc/multiframe
Yann Collet [Mon, 13 Feb 2017 20:18:16 +0000 (12:18 -0800)] 
Merge pull request #536 from iburinoc/multiframe

Simple API multiframe decoding

8 years agolimit zlib compression level to Z_BEST_COMPRESSION
Przemyslaw Skibinski [Mon, 13 Feb 2017 20:00:41 +0000 (21:00 +0100)] 
limit zlib compression level to Z_BEST_COMPRESSION

8 years agoMerge pull request #542 from ds77/large-sparse-fix
Yann Collet [Mon, 13 Feb 2017 19:57:35 +0000 (11:57 -0800)] 
Merge pull request #542 from ds77/large-sparse-fix

zstdcli: fix writing 2GB+ sparse files under Windows

8 years agoMerge remote-tracking branch 'refs/remotes/facebook/dev' into gz_compress
Przemyslaw Skibinski [Mon, 13 Feb 2017 19:47:01 +0000 (20:47 +0100)] 
Merge remote-tracking branch 'refs/remotes/facebook/dev' into gz_compress

# Conflicts:
# programs/Makefile

8 years agoMinGW-w64 requires _FILE_OFFSET_BITS 64
Przemyslaw Skibinski [Mon, 13 Feb 2017 12:57:29 +0000 (13:57 +0100)] 
MinGW-w64 requires _FILE_OFFSET_BITS 64

8 years ago__builtin_bswap requires gcc 4.3+
Przemyslaw Skibinski [Mon, 13 Feb 2017 11:45:53 +0000 (12:45 +0100)] 
__builtin_bswap requires gcc 4.3+

8 years agoMerge remote-tracking branch 'refs/remotes/facebook/dev' into dev11
Przemyslaw Skibinski [Mon, 13 Feb 2017 11:15:10 +0000 (12:15 +0100)] 
Merge remote-tracking branch 'refs/remotes/facebook/dev' into dev11

8 years agofix indentation in previous commit 542/head
ds77 [Mon, 13 Feb 2017 11:00:59 +0000 (12:00 +0100)] 
fix indentation in previous commit

8 years agoMerge remote-tracking branch 'refs/remotes/facebook/dev' into dev11
Przemyslaw Skibinski [Mon, 13 Feb 2017 08:48:15 +0000 (09:48 +0100)] 
Merge remote-tracking branch 'refs/remotes/facebook/dev' into dev11

8 years agofix seeking 2GB+ files under Windows
ds77 [Sun, 12 Feb 2017 09:27:18 +0000 (10:27 +0100)] 
fix seeking 2GB+ files under Windows

Replace fseek() in FIO_fwriteSparse() and FIO_fwriteSparseEnd() with macro expanding to 64-bit fseek version provided by the platform (includes  fallback workaround using Win32 API).

8 years agoMerge pull request #540 from ds77/dev-stat64-fix
Yann Collet [Sun, 12 Feb 2017 05:08:08 +0000 (21:08 -0800)] 
Merge pull request #540 from ds77/dev-stat64-fix

zstdcli: Fix reporting incorrect sizes of large flies on MinGW

8 years agoMerge pull request #541 from inikep/mingw
Yann Collet [Sun, 12 Feb 2017 05:07:53 +0000 (21:07 -0800)] 
Merge pull request #541 from inikep/mingw

fixed "mingw32" AppVeyor target

8 years agorevert last commit 541/head
Przemyslaw Skibinski [Fri, 10 Feb 2017 20:15:49 +0000 (21:15 +0100)] 
revert last commit

8 years agoExpose frameSrcSize to experimental API 536/head
Sean Purcell [Fri, 10 Feb 2017 19:38:57 +0000 (11:38 -0800)] 
Expose frameSrcSize to experimental API

8 years agofix for original MinGW
Przemyslaw Skibinski [Fri, 10 Feb 2017 19:09:28 +0000 (20:09 +0100)] 
fix for original MinGW

8 years agoMerge branch 'dev' into multiframe
Sean Purcell [Fri, 10 Feb 2017 18:08:55 +0000 (10:08 -0800)] 
Merge branch 'dev' into multiframe

8 years agouse _stati64() in UTIL_getFileSize() when compiling with mingw, get rid of introduces... 540/head
ds77 [Fri, 10 Feb 2017 17:37:57 +0000 (18:37 +0100)] 
use _stati64() in UTIL_getFileSize() when compiling with mingw, get rid of introduces previously preprocessor checks.

8 years agoMerge remote-tracking branch 'refs/remotes/facebook/dev' into mingw
Przemyslaw Skibinski [Fri, 10 Feb 2017 12:38:54 +0000 (13:38 +0100)] 
Merge remote-tracking branch 'refs/remotes/facebook/dev' into mingw

# Conflicts:
# programs/platform.h

8 years agoMerge pull request #537 from terrelln/small-bugs
Yann Collet [Fri, 10 Feb 2017 12:35:43 +0000 (04:35 -0800)] 
Merge pull request #537 from terrelln/small-bugs

Fix small bugs

8 years agofix previous commit
- [Fri, 10 Feb 2017 12:27:43 +0000 (13:27 +0100)] 
fix previous commit

* struct _stat64 is not defined by (non-w64) MinGW releases, __stat64 should be everywhere
* proper detection of _stat64() availability (as in MinGW sys/stat.h)

8 years agoappveyor.yml: fixed clang test
Przemyslaw Skibinski [Fri, 10 Feb 2017 12:10:25 +0000 (13:10 +0100)] 
appveyor.yml: fixed clang test

8 years agoMerge pull request #538 from iburinoc/errorstring
Yann Collet [Fri, 10 Feb 2017 11:59:56 +0000 (03:59 -0800)] 
Merge pull request #538 from iburinoc/errorstring

Fix ZSTD_getErrorString and add tests

8 years agoMerge pull request #533 from inikep/dev11
Yann Collet [Fri, 10 Feb 2017 11:50:08 +0000 (03:50 -0800)] 
Merge pull request #533 from inikep/dev11

--priority=rt

8 years agoappveyor.yml: reordering of tests
Przemyslaw Skibinski [Fri, 10 Feb 2017 11:41:31 +0000 (12:41 +0100)] 
appveyor.yml: reordering of tests

8 years agofix missing "
Przemyslaw Skibinski [Fri, 10 Feb 2017 11:32:30 +0000 (12:32 +0100)] 
fix missing "

8 years agoappveyor.yml: add clang target
Przemyslaw Skibinski [Fri, 10 Feb 2017 11:01:14 +0000 (12:01 +0100)] 
appveyor.yml: add clang target

8 years agofixed "mingw32" AppVeyor target
Przemyslaw Skibinski [Fri, 10 Feb 2017 10:01:52 +0000 (11:01 +0100)] 
fixed "mingw32" AppVeyor target

8 years agouse _stat64 only when targetting Win2k or later
- [Fri, 10 Feb 2017 09:56:45 +0000 (10:56 +0100)] 
use _stat64 only when targetting Win2k or later

8 years agofix 64-bit file support for MinGW
Przemyslaw Skibinski [Fri, 10 Feb 2017 09:36:44 +0000 (10:36 +0100)] 
fix 64-bit file support for MinGW

8 years agoImprovement from @inikep 537/head
Nick Terrell [Thu, 9 Feb 2017 22:20:52 +0000 (14:20 -0800)] 
Improvement from @inikep

8 years agouse _stat64() on MinGW
ds77 [Thu, 9 Feb 2017 17:12:00 +0000 (18:12 +0100)] 
use _stat64() on MinGW

On MinGW, use _stat64() and struct _stat64 instead of stat() and struct stat_t. This fixes reporting incorrect sizes for large files.

8 years agoDocumentation updates
Sean Purcell [Thu, 9 Feb 2017 21:25:30 +0000 (13:25 -0800)] 
Documentation updates

8 years agoFix failing unit test
Sean Purcell [Thu, 9 Feb 2017 20:27:32 +0000 (12:27 -0800)] 
Fix failing unit test

8 years agoMerge branch 'dev' into multiframe
Sean Purcell [Thu, 9 Feb 2017 19:54:22 +0000 (11:54 -0800)] 
Merge branch 'dev' into multiframe

8 years agoMake pledgedSrcSize meaning clear for other functions
Sean Purcell [Thu, 9 Feb 2017 18:50:43 +0000 (10:50 -0800)] 
Make pledgedSrcSize meaning clear for other functions

- Added tests
- Moved new size functions to static link only

8 years agoecho replaced with printf 533/head
Przemyslaw Skibinski [Thu, 9 Feb 2017 16:01:17 +0000 (17:01 +0100)] 
echo replaced with printf

8 years agodon't use "echo -e"
Przemyslaw Skibinski [Thu, 9 Feb 2017 10:32:14 +0000 (11:32 +0100)] 
don't use "echo -e"

8 years agoMerge branch 'dev' into dev11
Przemyslaw Skibinski [Thu, 9 Feb 2017 08:42:16 +0000 (09:42 +0100)] 
Merge branch 'dev' into dev11

8 years agoMerge pull request #535 from terrelln/tests 539/head
Yann Collet [Thu, 9 Feb 2017 08:36:03 +0000 (00:36 -0800)] 
Merge pull request #535 from terrelln/tests

Remove test-longmatch from test target and only run it once

8 years agoFix deprecation warnings for clang with C++14
Nick Terrell [Thu, 9 Feb 2017 01:38:17 +0000 (17:38 -0800)] 
Fix deprecation warnings for clang with C++14