]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
8 years agotravis.yml: test arm-ppc-compilation target 559/head
Przemyslaw Skibinski [Wed, 22 Feb 2017 10:21:34 +0000 (11:21 +0100)] 
travis.yml: test arm-ppc-compilation target

8 years agoadded arm-ppc-compilation Makefile target
Przemyslaw Skibinski [Wed, 22 Feb 2017 10:07:28 +0000 (11:07 +0100)] 
added arm-ppc-compilation Makefile target

8 years agominor tweaks
Przemyslaw Skibinski [Wed, 22 Feb 2017 09:31:30 +0000 (10:31 +0100)] 
minor tweaks

8 years agotravis.yml: fix versionsTest target
Przemyslaw Skibinski [Wed, 22 Feb 2017 08:36:42 +0000 (09:36 +0100)] 
travis.yml: fix versionsTest target

8 years agotravis.yml: set "dist: trusty" as default
Przemyslaw Skibinski [Wed, 22 Feb 2017 08:21:04 +0000 (09:21 +0100)] 
travis.yml: set "dist: trusty" as default

8 years agomove Ubuntu packages install to Makefile
Przemyslaw Skibinski [Wed, 22 Feb 2017 07:54:56 +0000 (08:54 +0100)] 
move Ubuntu packages install to Makefile

8 years agotravis.yml: reduce number of jobs to 7
Przemyslaw Skibinski [Wed, 22 Feb 2017 07:15:17 +0000 (08:15 +0100)] 
travis.yml: reduce number of jobs to 7

8 years agoMerge remote-tracking branch 'refs/remotes/facebook/dev' into asan
Przemyslaw Skibinski [Wed, 22 Feb 2017 07:14:54 +0000 (08:14 +0100)] 
Merge remote-tracking branch 'refs/remotes/facebook/dev' into asan

8 years agoMerge pull request #557 from inikep/dev11
Yann Collet [Wed, 22 Feb 2017 01:53:28 +0000 (17:53 -0800)] 
Merge pull request #557 from inikep/dev11

travis.yml: remove tests that overlap with Circle CI

8 years agoMerge pull request #552 from iburinoc/spec
Yann Collet [Wed, 22 Feb 2017 01:52:25 +0000 (17:52 -0800)] 
Merge pull request #552 from iburinoc/spec

Restructure Format Specification

8 years agofix uasan-test32
Przemyslaw Skibinski [Tue, 21 Feb 2017 22:40:21 +0000 (23:40 +0100)] 
fix uasan-test32

8 years agotravis.yml: added uasan-test and uasan-test32
Przemyslaw Skibinski [Tue, 21 Feb 2017 21:48:04 +0000 (22:48 +0100)] 
travis.yml: added uasan-test and uasan-test32

8 years agotravis.yml: use CFLAGS=-Og with -fsanitize
Przemyslaw Skibinski [Tue, 21 Feb 2017 20:48:14 +0000 (21:48 +0100)] 
travis.yml: use CFLAGS=-Og with -fsanitize

8 years agotravis.yml: added LDFLAGS=-fuse-ld=gold
Przemyslaw Skibinski [Tue, 21 Feb 2017 20:12:09 +0000 (21:12 +0100)] 
travis.yml: added LDFLAGS=-fuse-ld=gold

8 years agotravis.yml: reduce number of jobs
Przemyslaw Skibinski [Tue, 21 Feb 2017 19:44:35 +0000 (20:44 +0100)] 
travis.yml: reduce number of jobs

8 years agolegacy.c: fix memory leaks
Przemyslaw Skibinski [Tue, 21 Feb 2017 19:10:21 +0000 (20:10 +0100)] 
legacy.c: fix memory leaks

8 years agoAdd default distributions and fix typos 552/head
Sean Purcell [Tue, 21 Feb 2017 18:20:36 +0000 (10:20 -0800)] 
Add default distributions and fix typos

8 years agozstd_compress.c: fix memory leaks
Przemyslaw Skibinski [Tue, 21 Feb 2017 17:59:56 +0000 (18:59 +0100)] 
zstd_compress.c: fix memory leaks

8 years agofix memory leaks
Przemyslaw Skibinski [Tue, 21 Feb 2017 17:17:24 +0000 (18:17 +0100)] 
fix memory leaks

8 years agouasan
Przemyslaw Skibinski [Tue, 21 Feb 2017 14:57:03 +0000 (15:57 +0100)] 
uasan

8 years agotravis.yml: use clang-4.0 for asan32 test 557/head
Przemyslaw Skibinski [Tue, 21 Feb 2017 12:40:28 +0000 (13:40 +0100)] 
travis.yml: use clang-4.0 for asan32 test

8 years agobench.c: use a single ticksPerSecond
Przemyslaw Skibinski [Tue, 21 Feb 2017 11:22:05 +0000 (12:22 +0100)] 
bench.c: use a single ticksPerSecond

8 years agotravis.yml: switch asan32 to Ubuntu 14.04
Przemyslaw Skibinski [Tue, 21 Feb 2017 08:59:19 +0000 (09:59 +0100)] 
travis.yml: switch asan32 to Ubuntu 14.04

8 years agotravis.yml: join pzstd tests
Przemyslaw Skibinski [Tue, 21 Feb 2017 07:39:02 +0000 (08:39 +0100)] 
travis.yml: join pzstd tests

8 years agoMerge remote-tracking branch 'refs/remotes/facebook/dev' into dev11
Przemyslaw Skibinski [Tue, 21 Feb 2017 07:02:32 +0000 (08:02 +0100)] 
Merge remote-tracking branch 'refs/remotes/facebook/dev' into dev11

8 years agotravis.yml: remove tests that overlap with Circle CI
Przemyslaw Skibinski [Tue, 21 Feb 2017 07:01:55 +0000 (08:01 +0100)] 
travis.yml: remove tests that overlap with Circle CI

8 years agoutil.h: restore times()
Przemyslaw Skibinski [Tue, 21 Feb 2017 06:33:45 +0000 (07:33 +0100)] 
util.h: restore times()

8 years agoMerge pull request #555 from anders-code/dev
Yann Collet [Tue, 21 Feb 2017 03:07:36 +0000 (19:07 -0800)] 
Merge pull request #555 from anders-code/dev

spelling fixes in comments

8 years agoMerge pull request #553 from inikep/devel
Yann Collet [Tue, 21 Feb 2017 03:07:04 +0000 (19:07 -0800)] 
Merge pull request #553 from inikep/devel

Devel

8 years agospelling fixes in comments 555/head
Anders Oleson [Mon, 20 Feb 2017 20:08:59 +0000 (12:08 -0800)] 
spelling fixes in comments

i.e. occurred labeled Huffman

8 years agoutil.h: use mach_absolute_time for macOS
Przemyslaw Skibinski [Mon, 20 Feb 2017 11:18:15 +0000 (12:18 +0100)] 
util.h: use mach_absolute_time for macOS

8 years agointroduce UTIL_freq_t
Przemyslaw Skibinski [Mon, 20 Feb 2017 10:27:11 +0000 (11:27 +0100)] 
introduce UTIL_freq_t

8 years agoreplace times() with clock_gettime(CLOCK_MONOTONIC, x)
Przemyslaw Skibinski [Mon, 20 Feb 2017 10:11:50 +0000 (11:11 +0100)] 
replace times() with clock_gettime(CLOCK_MONOTONIC, x)

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 agoRestructure Format Specification
Sean Purcell [Sat, 18 Feb 2017 00:24:26 +0000 (16:24 -0800)] 
Restructure Format Specification

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+