]>
git.ipfire.org Git - thirdparty/zstd.git/log
Nick Terrell [Fri, 28 Sep 2018 22:28:34 +0000 (15:28 -0700)]
Fix minigzip in std=c99 mode
Nick Terrell [Fri, 28 Sep 2018 22:08:15 +0000 (15:08 -0700)]
[util] Fix lstat feature test macro
Nick Terrell [Fri, 28 Sep 2018 21:59:40 +0000 (14:59 -0700)]
Add -Werror to *build rules
Nick Terrell [Fri, 28 Sep 2018 02:29:02 +0000 (19:29 -0700)]
Merge pull request #1343 from terrelln/faster-ci
[zstreamtest] Reduce memory of newapi tests
Yann Collet [Fri, 28 Sep 2018 02:23:27 +0000 (19:23 -0700)]
Merge pull request #1345 from facebook/fixLegacy
fixed legacy compilation tests
Yann Collet [Fri, 28 Sep 2018 01:24:41 +0000 (18:24 -0700)]
fixed longmatch test too
Yann Collet [Fri, 28 Sep 2018 01:15:14 +0000 (18:15 -0700)]
fixed legacy compilation tests
for some reason, these tests started failing recently on CircleCI
Yann Collet [Fri, 28 Sep 2018 00:36:54 +0000 (17:36 -0700)]
Merge pull request #1344 from terrelln/grub-fixes
Fixes for GRUB
Nick Terrell [Thu, 27 Sep 2018 23:06:02 +0000 (16:06 -0700)]
Restore ZSTD_noCompressBlock() for clarity
Nick Terrell [Thu, 27 Sep 2018 22:49:31 +0000 (15:49 -0700)]
Reset number of threads less often
Nick Terrell [Thu, 27 Sep 2018 22:23:20 +0000 (15:23 -0700)]
Change byte to value to avoid a GRUB typedef
Nick Terrell [Thu, 27 Sep 2018 22:22:34 +0000 (15:22 -0700)]
Include stddef.h for size_t
Nick Terrell [Thu, 27 Sep 2018 22:13:43 +0000 (15:13 -0700)]
[zstd] Add -Wmissing-prototypes
Nick Terrell [Thu, 27 Sep 2018 20:55:24 +0000 (13:55 -0700)]
More aggressive limitations
Nick Terrell [Thu, 27 Sep 2018 19:48:29 +0000 (12:48 -0700)]
[zstreamtest] Reduce memory of newapi tests
We could allocate up to 2^28 bytes of memory when using 2 threads with
window log = 24. Now, we limit it to 2^26 bytes of memory when not running
big tests.
I chose max window log = 22 since that is the maximum source size when
big tests are disabled. Hopefully this will be enough to reduce or
eliminate the test failures.
Yann Collet [Thu, 27 Sep 2018 17:20:14 +0000 (10:20 -0700)]
Merge pull request #1342 from facebook/fixcatyd
fix : huge (>4GB) chain of blocks
Yann Collet [Thu, 27 Sep 2018 01:06:53 +0000 (18:06 -0700)]
moved again overflow correction
cannot work from within ZSTD_compressBlock()
Yann Collet [Wed, 26 Sep 2018 22:52:23 +0000 (15:52 -0700)]
Merge pull request #1340 from terrelln/generate-artifacts
Publish artifacts with CircleCI
Yann Collet [Wed, 26 Sep 2018 22:35:38 +0000 (15:35 -0700)]
changed overflow correction place
keep one in compress_frameChunk(),
so that it's tested at every loop
in case some user simply some large mulit-GB input in a single invocation.
Add one in ZSTD_compressBlock(),
since compressBlock() explicitly skips frameChunk().
Yann Collet [Wed, 26 Sep 2018 21:39:20 +0000 (14:39 -0700)]
Merge pull request #1339 from facebook/grep_colors
fixed usage of grep in Makefile
Yann Collet [Wed, 26 Sep 2018 21:39:08 +0000 (14:39 -0700)]
Merge pull request #1327 from facebook/adapt
Adaptive compression
Yann Collet [Wed, 26 Sep 2018 21:24:28 +0000 (14:24 -0700)]
fix : huge (>4GB) stream of blocks
experimental function ZSTD_compressBlock() is designed for very small data in mind,
for situation where saving the ~12 bytes of frame header can actually make a difference.
Some systems though may have to deal with small and large data entangled.
If it's larger than a block (> 128KB), compressBlock() cannot compress them in one round.
That's why it's possible to compress in multiple rounds.
This is a chain of compressed blocks.
Some users push this capability to the limit, encoding gigantic chain of blocks.
On crossing the 4GB limit, some internal overflow occurs.
This fix moves the overflow correction mechanism higher in the call chain,
so that it's applied also to gigantic chains of blocks.
Added a test case in fuzzer.c, which crashes before the fix, and pass now.
Yann Collet [Wed, 26 Sep 2018 20:40:35 +0000 (13:40 -0700)]
Merge pull request #1338 from facebook/rfc
updated format documentation
Yann Collet [Wed, 26 Sep 2018 20:40:20 +0000 (13:40 -0700)]
Merge pull request #1337 from facebook/test_failure
fixed `!` tests
Yann Collet [Wed, 26 Sep 2018 20:39:05 +0000 (13:39 -0700)]
Merge pull request #1329 from facebook/v04isout
Changed default legacy support to v0.5+
Nick Terrell [Tue, 25 Sep 2018 23:10:17 +0000 (16:10 -0700)]
Publish artifacts with CircleCI
* Updates CircleCI to use workflows.
We can now specify any number of test jobs to run in parallel.
* Switch the image to `buildpack-deps:trusty` which is only 500 MB
instead of 7 GB, so that saves 7 minutes to download it if it isn't
already cached on the host.
* Publish the source tarball and sha256sum as artifacts.
* If the `GITHUB_TOKEN` environment variable is set, we will also
add the tarball + sha256sum to the tagged release, after manual
approval.
Yann Collet [Tue, 25 Sep 2018 23:56:53 +0000 (16:56 -0700)]
fixed usage of grep in Makefile
when terminal uses colors
as suggested by @danielshir (#1294)
Yann Collet [Tue, 25 Sep 2018 23:34:26 +0000 (16:34 -0700)]
updated format documentation
to match last edits of RFC8478.
Yann Collet [Tue, 25 Sep 2018 01:16:08 +0000 (18:16 -0700)]
bounds for --adapt mode
can supply min and max compression level through advanced command :
--adapt=min=#,max=#
Yann Collet [Tue, 25 Sep 2018 22:57:28 +0000 (15:57 -0700)]
fixed `!` tests
Sometimes, it's necessary to test that a certain command fail, as expected.
Such failure is actually a success, and must not stop the flow of tests.
Several tests were prefixed with `!` to invert return code.
This does not work : it effectively makes the tests pass no matter what.
Use instead function die(), which is meant to trap successes, and transform them into errors.
Yann Collet [Mon, 24 Sep 2018 23:56:45 +0000 (16:56 -0700)]
Merge branch 'dev' into adapt
Yann Collet [Mon, 24 Sep 2018 23:01:13 +0000 (16:01 -0700)]
Merge pull request #1332 from facebook/minclevel
defined a minimum negative level
Yann Collet [Mon, 24 Sep 2018 21:49:16 +0000 (14:49 -0700)]
Merge pull request #1336 from facebook/scanbuild
fixed minor scan-build warnings
Yann Collet [Mon, 24 Sep 2018 21:49:03 +0000 (14:49 -0700)]
Merge pull request #1335 from facebook/limits
added some tests based on limits.h
Yann Collet [Mon, 24 Sep 2018 07:52:19 +0000 (00:52 -0700)]
fixed minor scan-build warnings
Yann Collet [Mon, 24 Sep 2018 06:57:30 +0000 (23:57 -0700)]
added some tests based on limits.h
in order to ensure proper type mapping
when not using stdint.h
Yann Collet [Sun, 23 Sep 2018 00:21:39 +0000 (17:21 -0700)]
fixed zstd-decompress
which cannot support ZSTD_minCLevel()
Yann Collet [Sat, 22 Sep 2018 23:11:55 +0000 (16:11 -0700)]
Merge pull request #1331 from facebook/mingw
fix mingw compatibility
Yann Collet [Sat, 22 Sep 2018 23:10:10 +0000 (16:10 -0700)]
enforce minimum compression level limit
using ZSTD_minCLevel()
Yann Collet [Sat, 22 Sep 2018 01:23:32 +0000 (18:23 -0700)]
fixed constant comparison on 32-bits systems
Yann Collet [Sat, 22 Sep 2018 00:40:30 +0000 (17:40 -0700)]
avoid recompiling dll every time under mingw
Yann Collet [Sat, 22 Sep 2018 00:36:00 +0000 (17:36 -0700)]
fix pzstd compatibility with mingw
some details changed with introduction of gcc7
Yann Collet [Sat, 22 Sep 2018 00:28:37 +0000 (17:28 -0700)]
fix constant redeclaration in paramgrill
Yann Collet [Fri, 21 Sep 2018 23:35:43 +0000 (16:35 -0700)]
simplified "slows down when compression blocked"
Yann Collet [Fri, 21 Sep 2018 23:00:46 +0000 (16:00 -0700)]
Merge branch 'mingw' into adapt
Yann Collet [Fri, 21 Sep 2018 22:37:30 +0000 (15:37 -0700)]
ensure all writes to job->cSize are mutex protected
even when reporting errors,
using a macro for code brevity, as suggested by @terrelln,
Yann Collet [Fri, 21 Sep 2018 22:04:43 +0000 (15:04 -0700)]
fixed tautological tests
involving ZSTD_TARGETLENGTH_MIN (== 0)
Yann Collet [Fri, 21 Sep 2018 21:56:57 +0000 (14:56 -0700)]
Merge branch 'mingw' into minclevel
Yann Collet [Fri, 21 Sep 2018 21:46:09 +0000 (14:46 -0700)]
fix mingw compatibility
only enable backtraces for platforms we know support it
aka mac OS-X and Linux.
can be extended later.
Yann Collet [Fri, 21 Sep 2018 19:15:33 +0000 (12:15 -0700)]
Merge pull request #1318 from felixhandte/shadow-dict-matches
Don't Search Dictionary Context When Working Context Search Resulted in Mismatch
Yann Collet [Thu, 20 Sep 2018 23:17:49 +0000 (16:17 -0700)]
defined a minimum negative level
which can be probed using new function ZSTD_minCLevel().
Also : redefined ZSTD_TARGETLENGTH_MIN/MAX for consistency
used the opportunity to bump version number to v1.3.6
Yann Collet [Thu, 20 Sep 2018 21:59:11 +0000 (14:59 -0700)]
fixed versions-test to only test v0.5+
since zstd_devel is no longer compatible with v0.4+
Yann Collet [Thu, 20 Sep 2018 21:24:23 +0000 (14:24 -0700)]
Changed default legacy support to v0.5+
thus dropping read support for v0.4.
It's always possible to re-enable it, by changing build macro ZSTD_LEGACY_SUPPORT to 4.
Yann Collet [Thu, 20 Sep 2018 20:47:31 +0000 (13:47 -0700)]
fixed complex tsan issue
when job->consumed == job->src.size , compression job is presumed completed,
so it must be the very last action done in worker thread.
Yann Collet [Thu, 20 Sep 2018 20:00:11 +0000 (13:00 -0700)]
fixed minor gcc warning on a unused variable
Yann Collet [Thu, 20 Sep 2018 00:37:22 +0000 (17:37 -0700)]
updated man page
and added `--adapt` test in `playTests.sh`
Yann Collet [Wed, 19 Sep 2018 23:30:55 +0000 (16:30 -0700)]
fixed minor reporting discrepancy in MT mode
Yann Collet [Wed, 19 Sep 2018 22:09:45 +0000 (15:09 -0700)]
removed static variables
so that --adapt can work on multiple input files too
Yann Collet [Wed, 19 Sep 2018 21:49:13 +0000 (14:49 -0700)]
error out when --adapt is associated with --single-thread
since they are not compatible
Yann Collet [Wed, 19 Sep 2018 19:43:42 +0000 (12:43 -0700)]
Merge branch 'dev' into adapt
Yann Collet [Tue, 18 Sep 2018 22:28:34 +0000 (15:28 -0700)]
Merge pull request #1326 from facebook/refPrefix
updated documentation of *refPrefix()
Yann Collet [Tue, 18 Sep 2018 20:07:08 +0000 (13:07 -0700)]
updated documentation of *refPrefix()
indicating the equivalence with `diff` operation.
Nick Terrell [Mon, 17 Sep 2018 21:40:27 +0000 (14:40 -0700)]
Merge pull request #1321 from bket/non-portable
'head -c BYTES' is non-portable.
Yann Collet [Mon, 17 Sep 2018 21:10:17 +0000 (14:10 -0700)]
Merge pull request #1324 from ko-zu/fixclangcode
Fix largeNbDicts bench for clangbuild
Björn Ketelaars [Sat, 30 Jun 2018 13:42:42 +0000 (15:42 +0200)]
'head -c BYTES' is non-portable.
tests/playTests.sh uses 'head -c' in a couple of tests to truncate the
last byte of a file. The '-c' option is non-portable (not in POSIX).
Instead use a wrapper around dd (truncateLastByte).
Nick Terrell [Mon, 17 Sep 2018 18:04:51 +0000 (11:04 -0700)]
Merge pull request #1322 from azat-archive/seekable-fixes-pull
Fixes read write past end of input buffer.
ko-zu [Mon, 17 Sep 2018 04:09:08 +0000 (13:09 +0900)]
Fix largeNbDicts bench for clangbuild
Remove unsigned to size_t promotion to fix implicit down conversion errors in clangbuild target.
Azat Khuzhin [Sun, 16 Sep 2018 15:04:43 +0000 (18:04 +0300)]
seekable_decompression: support offset greater then UNIT_MAX
Azat Khuzhin [Sun, 16 Sep 2018 15:04:43 +0000 (18:04 +0300)]
zstdseek_decompress: fix decompression with data left in input buffer
Yann Collet [Sun, 16 Sep 2018 02:31:42 +0000 (19:31 -0700)]
Merge pull request #1319 from ko-zu/fixclangbuild
Fix clang build
ko-zu [Sun, 16 Sep 2018 01:27:02 +0000 (10:27 +0900)]
Fix clang build
Fix dixygen comment
Fix clang binary path
Yann Collet [Fri, 14 Sep 2018 23:06:35 +0000 (16:06 -0700)]
minor code comment update
Yann Collet [Fri, 14 Sep 2018 22:29:19 +0000 (15:29 -0700)]
Merge pull request #1295 from felixhandte/hdr-intro-comment-negative-lvls
Proposed Update to Zstd.h Introduction Comment
W. Felix Handte [Fri, 14 Sep 2018 22:24:25 +0000 (15:24 -0700)]
ZSTD_dfast: Don't Search Dict Context When Mismatch Was Found
W. Felix Handte [Fri, 14 Sep 2018 22:23:35 +0000 (15:23 -0700)]
ZSTD_fast: Don't Search Dict Context When Mismatch Was Found
Yann Collet [Fri, 14 Sep 2018 17:37:46 +0000 (10:37 -0700)]
Merge pull request #1316 from facebook/coldDict
Cold dictionary mitigation
Yann Collet [Thu, 13 Sep 2018 23:44:04 +0000 (16:44 -0700)]
updated code comments, based on @terrelln review
Yann Collet [Thu, 13 Sep 2018 19:29:52 +0000 (12:29 -0700)]
fixed msan error
cold dictionary is detected through a comparison with dictEnd,
which was not initialized at the beginning of first DCtx usage.
Yann Collet [Wed, 12 Sep 2018 23:54:57 +0000 (16:54 -0700)]
final parameter tuning
Yann Collet [Wed, 12 Sep 2018 23:40:28 +0000 (16:40 -0700)]
clean traces
Yann Collet [Wed, 12 Sep 2018 23:15:37 +0000 (16:15 -0700)]
fixed PREFETCH() macro
for corner cases and platforms without this instruction
Yann Collet [Wed, 12 Sep 2018 23:12:00 +0000 (16:12 -0700)]
Merge pull request #1315 from cmcginty/dev
Add build define to manually enable -rdynamic LD flag
Yann Collet [Wed, 12 Sep 2018 22:35:21 +0000 (15:35 -0700)]
conditional dict content prefetching
based on nbSeq.
Casey McGinty [Wed, 12 Sep 2018 21:00:08 +0000 (14:00 -0700)]
Add build define to manually enable -rdynamic LD flag
Yann Collet [Wed, 12 Sep 2018 20:30:16 +0000 (13:30 -0700)]
Merge pull request #1314 from terrelln/cpuid
[libzstd] Fix cpu for MSFT ARM
Yann Collet [Wed, 12 Sep 2018 19:32:09 +0000 (12:32 -0700)]
adjust heuristic decisions
Nick Terrell [Wed, 12 Sep 2018 19:05:32 +0000 (12:05 -0700)]
Also allow x86
Yann Collet [Wed, 12 Sep 2018 18:28:45 +0000 (11:28 -0700)]
largeNbDicts : can select a nb of blocks
will automatically truncate or repeat input as needed,
to create the requested nb of blocks.
default: nb of files, eventually increased appropriately if blockSize is set
Nick Terrell [Wed, 12 Sep 2018 17:35:16 +0000 (10:35 -0700)]
[libzstd] Fix cpu for MSFT ARM
The `__cpuid()` and `__cpuidex()` intrinsics are only available
on x86 and x86_64.
Yann Collet [Wed, 12 Sep 2018 17:29:47 +0000 (10:29 -0700)]
added conditional prefetch
depending on amount of work to do.
Yann Collet [Wed, 12 Sep 2018 17:13:23 +0000 (10:13 -0700)]
Merge pull request #1311 from cmcginty/dev
Print a stack trace on unexpected term signal (e.g. SIGABRT)
Yann Collet [Wed, 12 Sep 2018 00:23:44 +0000 (17:23 -0700)]
implemented first prefetch
based on dictID.
dictContent is prefetched up to 32 KB
(no contentSize adaptation)
Casey McGinty [Tue, 11 Sep 2018 23:19:34 +0000 (16:19 -0700)]
Disable -rdynamic LD option on Windows
Casey McGinty [Tue, 11 Sep 2018 21:49:47 +0000 (14:49 -0700)]
Update comments, and LD flag usage in Make
Casey McGinty [Tue, 11 Sep 2018 18:56:50 +0000 (11:56 -0700)]
Remove dead code and method name typo
Casey McGinty [Tue, 11 Sep 2018 18:39:49 +0000 (11:39 -0700)]
Move ABRThandler func out of internal lib
Casey McGinty [Tue, 11 Sep 2018 17:40:45 +0000 (10:40 -0700)]
Refactor abort signal handling
- Print signal name to term
- Add -rdynamic option to generate Linux symbol names in backtrace
- Raise default signal after handler to ensure program termination
Yann Collet [Mon, 10 Sep 2018 20:11:11 +0000 (13:11 -0700)]
Merge pull request #1310 from facebook/Dworkspace
reduce DDict size by 2KB
Yann Collet [Mon, 10 Sep 2018 18:24:17 +0000 (11:24 -0700)]
added comment about minimum size of FSE tables
required for DDict creation,
which use this space as workspace during Hufman table building stage.
Yann Collet [Fri, 7 Sep 2018 22:42:04 +0000 (15:42 -0700)]
Merge pull request #1307 from facebook/spec
spec clarification