]>
git.ipfire.org Git - thirdparty/zstd.git/log
Make idiomatic cmake install so third party cmake installers work right.
Bimba Shrestha [Wed, 4 Dec 2019 18:02:17 +0000 (10:02 -0800)]
[fuzz] msan uninitialized unsigned value (#1908)
Fixes new fuzz issue
Credit to OSS-Fuzz
* Initializing unsigned value
* Initialilzing to 1 instead of 0 because its more conservative
* Unconditionoally setting to check first and then checking zero
* Moving bool to before block for c90
* Move check set before block
Yann Collet [Wed, 4 Dec 2019 01:06:42 +0000 (17:06 -0800)]
bumped version number
so that potential issue report do not confuse `dev` with latest release
Yann Collet [Tue, 3 Dec 2019 23:35:07 +0000 (15:35 -0800)]
Merge pull request #1893 from felixhandte/check-flipped-bits
Add Tool to Diagnose Whether Corrupt Blobs are Plausibly Bit-Flips
Yann Collet [Tue, 3 Dec 2019 23:31:11 +0000 (15:31 -0800)]
Merge pull request #1907 from selavy/check-fread-r1895
Check for fread failure
Yann Collet [Tue, 3 Dec 2019 01:30:37 +0000 (17:30 -0800)]
Merge pull request #1918 from facebook/recurse_fix
small refactoring : remove global variable g_displayOut
Yann Collet [Tue, 3 Dec 2019 00:08:08 +0000 (16:08 -0800)]
refactoring : remove global variable g_displayOut
displaying into stderr or stdout is now an explicit operation,
no longer depending on some global state set elsewhere in the code.
Yann Collet [Mon, 2 Dec 2019 23:38:14 +0000 (15:38 -0800)]
Merge pull request #1917 from facebook/recurse_fix
fix recent issue combining -r with empty list of input files
Yann Collet [Mon, 2 Dec 2019 22:28:18 +0000 (14:28 -0800)]
fix recent issue combining -r with empty list of input files
This would resize the table of input filenames to zero,
delivering an empty table,
to which it was no longer possible to add stdin.
Yann Collet [Thu, 28 Nov 2019 02:45:16 +0000 (18:45 -0800)]
Merge pull request #1910 from facebook/travisTest
mingw cross compilation test
Yann Collet [Wed, 27 Nov 2019 22:48:26 +0000 (14:48 -0800)]
Merge pull request #1883 from Ericson2314/fix-mingw-cross
Fix MinGW cross
Yann Collet [Wed, 27 Nov 2019 22:39:43 +0000 (14:39 -0800)]
travis: updated mingw cross compilation test
- only compiles zstd CLI
- enforces zero warning tolerance policy
note : mingw compilation of the library complains (warning) about -fPIC flag.
It mostly ignores it, so it's not a big issue.
Still, it would need to be fixed if library cross-compilation becomes part of CI.
At this stage, it's unclear if this is a scenario.
Yann Collet [Wed, 27 Nov 2019 20:44:02 +0000 (12:44 -0800)]
added mingw cross compilation tests
based on a script in RocksDB project.
also : pushed qemu aarch64 tests to master/cron,
since there are already hardware aarch64 tests on dev.
Yann Collet [Wed, 27 Nov 2019 04:57:25 +0000 (20:57 -0800)]
Merge pull request #1853 from facebook/ahmed_file
--filelist=FILE feature
Peter Lesslie [Wed, 27 Nov 2019 01:36:33 +0000 (19:36 -0600)]
Check for fread failure
On failure fread may return either a short read or 0. Need to use
ferror to detect error versus eof.
Yann Collet [Wed, 27 Nov 2019 01:46:57 +0000 (17:46 -0800)]
removed scanbuild workaround
Yann Collet [Wed, 27 Nov 2019 00:44:56 +0000 (16:44 -0800)]
reverted ppc qemu and scanbuild on trusty
ppc cross-compilation seems broken outside of trusty
scan-build version changes with distrib version, resulting in a different list of false positives
Yann Collet [Tue, 26 Nov 2019 23:44:33 +0000 (15:44 -0800)]
assembleFNT() can no longer fail
Yann Collet [Tue, 26 Nov 2019 23:25:32 +0000 (15:25 -0800)]
pushed aside stdio.h too
since only UTIL_DISPLAY() depended on it.
Yann Collet [Tue, 26 Nov 2019 23:21:58 +0000 (15:21 -0800)]
moved UTIL_DISPLAY() inside util.c
Yann Collet [Tue, 26 Nov 2019 23:16:53 +0000 (15:16 -0800)]
util: isolated some dependencies
from *.h to *.c
so that they don't get transitively included
into users of util.h.
Yann Collet [Tue, 26 Nov 2019 23:01:16 +0000 (15:01 -0800)]
travisCI : removed `trusty` generic statement
trusty is out of long term support.
let's run (most) tests on "current" platform.
Yann Collet [Tue, 26 Nov 2019 22:53:37 +0000 (14:53 -0800)]
fixed minor VS warning, on parameter difference
complaining about a `const` property on one side but not the other.
Yann Collet [Tue, 26 Nov 2019 22:48:23 +0000 (14:48 -0800)]
switched UTIL_refFilename() to an assert()
Yann Collet [Tue, 26 Nov 2019 22:33:04 +0000 (14:33 -0800)]
Merge branch 'dev' into ahmed_file
Yann Collet [Tue, 26 Nov 2019 22:18:09 +0000 (14:18 -0800)]
fixed fifo test
Bimba Shrestha [Tue, 26 Nov 2019 20:24:19 +0000 (12:24 -0800)]
[fuzz] Only set HUF_repeat_valid if loaded table has all non-zero weights (#1898)
Fixes a fuzz issue where dictionary_round_trip failed because the compressor was generating corrupt files thanks to zero weights in the table.
* Only setting loaded dict huf table to valid on non-zero
* Adding hasNoZeroWeights test to fse tables
* Forbiding nbBits != 0 when weight == 0
* Reverting the last commit
* Setting table log to 0 when weight == 0
* Small (invalid) zero weight dict test
* Small (valid) zero weight dict test
* Initializing repeatMode vars to check before zero check
* Removing FSE changes to seperate pr
* Reverting accidentally changed file
* Negating bool, using unsigned, optimization nit
Yann Collet [Tue, 26 Nov 2019 19:20:26 +0000 (11:20 -0800)]
Merge branch 'dev' into ahmed_file
Yann Collet [Tue, 26 Nov 2019 18:30:11 +0000 (10:30 -0800)]
travisCI: moved compatibility tests to `dev`
they are fast enough, and we want to catch such incompatibility early
Yann Collet [Tue, 26 Nov 2019 18:28:21 +0000 (10:28 -0800)]
moved meson and versions compatibility tests to master/cron
also : joined c99 compatibility tests with gnu90 and c++ ones
Yann Collet [Tue, 26 Nov 2019 18:24:09 +0000 (10:24 -0800)]
travis : added test durations
as a guide when doing test selection
Yann Collet [Tue, 26 Nov 2019 02:48:12 +0000 (18:48 -0800)]
Merge pull request #1905 from facebook/devnull
fix #1904
Nick Terrell [Tue, 26 Nov 2019 02:26:19 +0000 (18:26 -0800)]
Optimize decompression speed for gcc and clang (#1892)
* Optimize `ZSTD_decodeSequence()`
* Optimize Huffman decoding
* Optimize `ZSTD_decompressSequences()`
* Delete `ZSTD_decodeSequenceLong()`
Yann Collet [Mon, 25 Nov 2019 23:50:58 +0000 (15:50 -0800)]
silence scan-build false positive
blind attempt
Yann Collet [Mon, 25 Nov 2019 23:34:55 +0000 (15:34 -0800)]
changed name from createX to assembleX
shows that the resulting object just takes ownership of provided buffer.
Yann Collet [Mon, 25 Nov 2019 21:59:35 +0000 (13:59 -0800)]
fix mode_t on Windows
Yann Collet [Mon, 25 Nov 2019 21:45:22 +0000 (13:45 -0800)]
created UTIL_chmod()
protecting "/dev/null" from having its permissions changed.
also : minor : improved consistency of util.h API
Yann Collet [Mon, 25 Nov 2019 18:53:03 +0000 (10:53 -0800)]
added decompression into /dev/null tests
Yann Collet [Mon, 25 Nov 2019 18:35:36 +0000 (10:35 -0800)]
fix #1904
/dev/null permissions were modified when using sudo rights.
This fixes this bug during decompression.
More importantly, this patch adds a test, triggered in TravisCI,
ensuring unaltered /dev/null permissions.
Yann Collet [Sat, 23 Nov 2019 01:32:07 +0000 (17:32 -0800)]
minor update to travis script
many tests used to be run on Trusty platform,
they are now run on _current_ platform,
and now many test titles are incorrect.
Fixed.
Yann Collet [Sat, 23 Nov 2019 01:25:55 +0000 (17:25 -0800)]
Merge pull request #1897 from sergey-dryabzhinsky/patch-1
WIP: Fix typo in util.c
Nick Terrell [Fri, 22 Nov 2019 01:35:06 +0000 (17:35 -0800)]
Merge pull request #1903 from terrelln/null
Fix null pointer addition
Yann Collet [Thu, 21 Nov 2019 23:49:06 +0000 (15:49 -0800)]
Merge pull request #1902 from terrelln/ignore
[cmake][tests] Add zstreamtest executable
Nick Terrell [Thu, 21 Nov 2019 02:21:51 +0000 (18:21 -0800)]
Fix null pointer addition
Nick Terrell [Thu, 21 Nov 2019 01:26:06 +0000 (17:26 -0800)]
[cmake][tests] Add zstreamtest executable
Nick Terrell [Thu, 21 Nov 2019 01:24:19 +0000 (17:24 -0800)]
Merge pull request #1901 from terrelln/ignore
Update .gitignore
Nick Terrell [Thu, 21 Nov 2019 00:36:40 +0000 (16:36 -0800)]
Update .gitignore
Yann Collet [Wed, 20 Nov 2019 00:18:56 +0000 (16:18 -0800)]
Merge pull request #1894 from felixhandte/doc-clarify-dctx-reset
Easy: Update Comment on `ZSTD_initDStream()`
Yann Collet [Wed, 20 Nov 2019 00:14:20 +0000 (16:14 -0800)]
Merge pull request #1887 from bimbashrestha/doc-fix
Fixing hashLog error 2^26=64Mib
Nick Terrell [Tue, 19 Nov 2019 20:52:51 +0000 (12:52 -0800)]
Merge pull request #1896 from terrelln/test-fixes
Fix Appveyor failure
Sergey Dryabzhinsky [Tue, 19 Nov 2019 20:24:00 +0000 (23:24 +0300)]
Update util.c
Sergey Dryabzhinsky [Tue, 19 Nov 2019 20:15:28 +0000 (23:15 +0300)]
Fix typo in util.c
There must be mtim*e*
Nick Terrell [Tue, 19 Nov 2019 19:12:26 +0000 (11:12 -0800)]
Fix Appveyor failure
Bimba Shrestha [Tue, 19 Nov 2019 17:55:13 +0000 (09:55 -0800)]
Updated some more outdated bounds
W. Felix Handte [Tue, 19 Nov 2019 06:57:15 +0000 (01:57 -0500)]
Easy: Update Comment on `ZSTD_initDStream()`
W. Felix Handte [Tue, 19 Nov 2019 06:21:53 +0000 (01:21 -0500)]
Add Tool to Diagnose Whether Corrupt Blobs are Plausibly Bit-Flips
I spend an increasing amount of my time looking at "Corrupted block detected"
failures in decompression. Not infrequently, I suspect that it is the result
of hardware failure, and that the blob has become bit-flipped or otherwise
corrupted somewhere along the line.
For that reason I was motivated to write a little tool to inspect blobs that
fail to decompress, to try modifying them, and then check whether they
decompress successfully. This seems like potentially a generally useful tool,
so I figured it might be worth putting in `contrib/`.
Nick Terrell [Tue, 19 Nov 2019 00:16:30 +0000 (16:16 -0800)]
Merge pull request #1866 from legrosbuffle/dev
Optimized loop bounds to allow the compiler to unroll the loop.
Nick Terrell [Tue, 19 Nov 2019 00:09:33 +0000 (16:09 -0800)]
Merge pull request #1888 from senhuang42/superblocks_fixed
RLE test and re-enable RLE in main compression loop
Nick Terrell [Tue, 19 Nov 2019 00:07:28 +0000 (16:07 -0800)]
Merge pull request #1889 from vtorri/dev
shared library: rename import library with .dll.a extension
Sen Huang [Mon, 18 Nov 2019 21:39:16 +0000 (16:39 -0500)]
No margin on RLE test size check
Sen Huang [Fri, 15 Nov 2019 19:57:44 +0000 (14:57 -0500)]
Updated comment to reflect actual compression behavior
Vincent Torri [Fri, 15 Nov 2019 18:46:06 +0000 (19:46 +0100)]
shared library: rename import library with .dll.a extension
mort of open source project are using this extension for the import library.
The Win32 linker is supporting this extension, see
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Using_ld_the_GNU_Linker/win32.html
section "direct linking to a dll"
Vincent Torri [Fri, 15 Nov 2019 18:37:15 +0000 (19:37 +0100)]
Merge remote-tracking branch 'upstream/master' into dev
Sen Huang [Fri, 15 Nov 2019 17:26:48 +0000 (12:26 -0500)]
Modified existing RLE test to take compressed size into account
Clement Courbet [Tue, 5 Nov 2019 13:14:02 +0000 (14:14 +0100)]
Optimized loop bounds to allow the compiler to unroll the loop.
This has no measurable impact on large files but improves small file
decompression by ~1-2% for 10kB, benchmarked with:
head -c 10000 silesia.tar > /tmp/test
make CC=/usr/local/bin/clang-9 BUILD_STATIC=1 && ./lzbench -ezstd -t1,5 /tmp/test
Sen Huang [Fri, 15 Nov 2019 00:39:09 +0000 (19:39 -0500)]
Fixed main compression logic changes
Yann Collet [Thu, 14 Nov 2019 21:31:34 +0000 (13:31 -0800)]
Merge pull request #1868 from senhuang42/superblocks_fixed
Superblocks rebased for merge
John Ericson [Tue, 12 Nov 2019 20:34:00 +0000 (15:34 -0500)]
Fix MinGW cross install from Unix
Needed a bunch of `$(EXT)`
John Ericson [Tue, 12 Nov 2019 20:13:35 +0000 (15:13 -0500)]
Fix MinGW cross build from Unix
generate_res.bat seems rather pointless, am I missing something? I just
inlined it into the Makefile.
Bimba Shrestha [Thu, 14 Nov 2019 18:48:55 +0000 (10:48 -0800)]
Fixing hashLog error 2^26=64Mib
Sen Huang [Thu, 14 Nov 2019 18:12:17 +0000 (13:12 -0500)]
Change superblock #include to be last
Yann Collet [Thu, 14 Nov 2019 17:44:07 +0000 (09:44 -0800)]
Merge pull request #1858 from senhuang42/dictionary_header_size
Method to get dictionary header size
Yann Collet [Thu, 14 Nov 2019 17:32:07 +0000 (09:32 -0800)]
Merge pull request #1884 from facebook/specMBS
Specs. clarifications for Block_Maximum_Size
Yann Collet [Wed, 13 Nov 2019 17:50:15 +0000 (09:50 -0800)]
clarifications for Block_Maximum_Size
as a follow up of #1882
John Ericson [Tue, 12 Nov 2019 23:59:06 +0000 (18:59 -0500)]
Use lowercase windows.h
Helps for cross builds, doesn't matter on Windows itself.
Yann Collet [Mon, 11 Nov 2019 19:00:10 +0000 (11:00 -0800)]
Merge pull request #1875 from ryandesign/c89
Change c90 to c89
Nick Terrell [Fri, 8 Nov 2019 18:57:59 +0000 (10:57 -0800)]
Merge pull request #1874 from terrelln/adjust-fix
Fix parameter selection and adjustment with srcSize == 0
Sen Huang [Fri, 8 Nov 2019 16:20:57 +0000 (11:20 -0500)]
Remove mixed declarations
Sen Huang [Thu, 7 Nov 2019 21:24:55 +0000 (16:24 -0500)]
Fix static analyze error, use proper bounds for dictEnd
Sen Huang [Thu, 7 Nov 2019 19:08:55 +0000 (14:08 -0500)]
Move asserts to loadZstdDictionary()
Sen Huang [Thu, 7 Nov 2019 19:07:21 +0000 (14:07 -0500)]
Expose ZSTD_reset_compressedBlockState() to shared API
Sen Huang [Thu, 7 Nov 2019 18:58:35 +0000 (13:58 -0500)]
Add error forwarding to loadCEntropy(), make check for dictSize >= 8 from bad merge
Sen Huang [Thu, 7 Nov 2019 16:47:47 +0000 (11:47 -0500)]
Remove redundant comment
Sen Huang [Thu, 7 Nov 2019 16:46:25 +0000 (11:46 -0500)]
Use ZSTD Error codes, improve explanation of ZSTD_loadCEntropy() and ZSTD_loadDEntropy()
Sen Huang [Thu, 7 Nov 2019 16:32:08 +0000 (11:32 -0500)]
Integrated refactor into getDictHeaderSize, now passes tests
Sen Huang [Thu, 7 Nov 2019 15:43:43 +0000 (10:43 -0500)]
First working pass at refactor of loadZstdDictionary()
Sen Huang [Thu, 7 Nov 2019 14:29:15 +0000 (09:29 -0500)]
Revert "Move decompress symbols into zstd_internal.h, remove dependency"
This reverts commit
a152b4c67a5266f611db4a2eac4a79003852a795 .
Sen Huang [Tue, 5 Nov 2019 20:07:07 +0000 (15:07 -0500)]
Move decompress symbols into zstd_internal.h, remove dependency
Sen Huang [Mon, 4 Nov 2019 21:13:52 +0000 (16:13 -0500)]
Checks malloc() for failure, returns 0 if so
Sen Huang [Mon, 4 Nov 2019 19:33:52 +0000 (14:33 -0500)]
Change to heap allocation, remove implicit type conversion
Sen Huang [Sun, 3 Nov 2019 22:44:28 +0000 (17:44 -0500)]
Added 2 unit tests: one for sanity, one for correctnesson fixed dict
Sen Huang [Tue, 29 Oct 2019 20:45:11 +0000 (16:45 -0400)]
Add ZDICT_getHeaderSize()
Ryan Schmidt [Thu, 7 Nov 2019 17:01:13 +0000 (11:01 -0600)]
Change c90 to c89
c89 and c90 are the same language. Old compilers like gcc 4.2.1 don't
know the c90 alias.
Nick Terrell [Thu, 7 Nov 2019 01:41:29 +0000 (17:41 -0800)]
Fix parameter selection and adjustment with srcSize == 0
Yann Collet [Wed, 6 Nov 2019 23:46:58 +0000 (15:46 -0800)]
added target zstd-dictBuilder
check that the dictBuilder can be compiled
with only lib/common and lib/compress as dependencies.
Yann Collet [Wed, 6 Nov 2019 23:23:44 +0000 (15:23 -0800)]
Visual compiler bug work-around
Yann Collet [Wed, 6 Nov 2019 23:07:35 +0000 (15:07 -0800)]
minor man page fix
Yann Collet [Wed, 6 Nov 2019 22:56:21 +0000 (14:56 -0800)]
fixed wrong assert() in regression driver
Yann Collet [Wed, 6 Nov 2019 22:43:14 +0000 (14:43 -0800)]
removed experimental_dict_builders
no longer required,
can still be accessed by going to back to an earlier commit or release (<= v1.4.4)
Yann Collet [Wed, 6 Nov 2019 22:42:13 +0000 (14:42 -0800)]
updated fuzz tests to use FileNamesTable* abstraction