]>
git.ipfire.org Git - thirdparty/zstd.git/log
Yann Collet [Fri, 21 Dec 2018 23:08:48 +0000 (15:08 -0800)]
update aarch64 test to xenial
in an attempt to circumvent the `ld` bug
Yann Collet [Fri, 21 Dec 2018 03:01:27 +0000 (19:01 -0800)]
Merge pull request #1466 from facebook/noDictPresent
fixed : better error message
Nick Terrell [Fri, 21 Dec 2018 02:14:13 +0000 (18:14 -0800)]
Merge pull request #1467 from terrelln/regression
[regression] Update results.csv
Nick Terrell [Fri, 21 Dec 2018 01:40:45 +0000 (17:40 -0800)]
[regression] Update results.csv
Yann Collet [Fri, 21 Dec 2018 01:27:08 +0000 (17:27 -0800)]
added strerror in comment
as suggested by @felixhandte
Yann Collet [Fri, 21 Dec 2018 01:21:04 +0000 (17:21 -0800)]
Merge pull request #1465 from facebook/noFilePresent
fixed : detection of non-existing file
Yann Collet [Fri, 21 Dec 2018 01:20:07 +0000 (17:20 -0800)]
fixed : better error message when dictionary missing
during benchmark.
Also : refactored ZSTD_fillHashTable(),
just for readability (it does the same thing)
Yann Collet [Thu, 20 Dec 2018 23:28:03 +0000 (15:28 -0800)]
fixed zlibwrapper examples build
Yann Collet [Thu, 20 Dec 2018 23:17:37 +0000 (15:17 -0800)]
Merge pull request #1420 from felixhandte/zstd-decompress-minimal
Various Macros to Allow Building Extremely Minimal Decoder Library
Yann Collet [Thu, 20 Dec 2018 23:17:00 +0000 (15:17 -0800)]
Merge pull request #1463 from yijinfb/getenv
Add support for environment variable ZSTD_CLEVEL in CLI
Yann Collet [Thu, 20 Dec 2018 22:56:44 +0000 (14:56 -0800)]
fixed shadowing of stat variable
some standard lib declares a `stat` variable at global scope
shadowing local declarations ....
Yann Collet [Thu, 20 Dec 2018 22:54:05 +0000 (14:54 -0800)]
fixed shadowing of variable time
some standard lib do define `time` as a global variable
shadowing local declarations ...
Yann Collet [Thu, 20 Dec 2018 22:46:23 +0000 (14:46 -0800)]
fixed wrong assert condition
Yann Collet [Thu, 20 Dec 2018 22:30:30 +0000 (14:30 -0800)]
fixed file identity detection in 32-bit mode
also :
some library decided to use `index` as a global variable declared in standard header
shadowing the ones used in fastcover.c :(
Yann Collet [Thu, 20 Dec 2018 22:02:50 +0000 (14:02 -0800)]
fixed stdlib implementation of time functions
generated redefinitions
Yann Collet [Thu, 20 Dec 2018 20:27:12 +0000 (12:27 -0800)]
removed strncpy() from `util.c`
as Visual surprisingly complains about their usage.
Replaced by memcpy()
W. Felix Handte [Thu, 20 Dec 2018 20:20:34 +0000 (12:20 -0800)]
Mask Off Unused Functions When ZSTD_FORCE_DECOMPRESS_SEQUENCES_LONG
W. Felix Handte [Thu, 20 Dec 2018 20:15:07 +0000 (12:15 -0800)]
Mask Off Unused Functions When ZSTD_FORCE_DECOMPRESS_SEQUENCES_SHORT
W. Felix Handte [Thu, 20 Dec 2018 20:10:51 +0000 (12:10 -0800)]
Update Travis Jobs to Run Shorter Tests with -Werror
Yann Collet [Thu, 20 Dec 2018 17:16:40 +0000 (09:16 -0800)]
use strerror() to generate error message
as suggested by @terrelln .
also:
- hopefully fixed Windows version
- changed the test, so that it passes on non-english OS stdlib errors.
Yi Jin [Thu, 20 Dec 2018 07:41:18 +0000 (23:41 -0800)]
change function name: _readU32FromChar() -> readU32FromCharChecked()
Yann Collet [Thu, 20 Dec 2018 02:38:37 +0000 (18:38 -0800)]
fixed 1 transitive include
Yann Collet [Thu, 20 Dec 2018 02:33:10 +0000 (18:33 -0800)]
Merge pull request #1464 from facebook/sysErrStr
add more system error strings
Yann Collet [Thu, 20 Dec 2018 02:30:57 +0000 (18:30 -0800)]
fixed : detection of non-existing file
better error message
with test
Yi Jin [Thu, 20 Dec 2018 01:56:45 +0000 (17:56 -0800)]
make init_cLevel(...) static
Yann Collet [Thu, 20 Dec 2018 01:53:15 +0000 (17:53 -0800)]
Merge pull request #1461 from terrelln/regression
[regression] Add more configs
Yi Jin [Thu, 20 Dec 2018 01:49:04 +0000 (17:49 -0800)]
fix the code ahead of declaration issue
Yann Collet [Thu, 20 Dec 2018 01:48:11 +0000 (17:48 -0800)]
Merge pull request #1462 from facebook/btultra2.3
fixed ossfuzz 11849
Yi Jin [Thu, 20 Dec 2018 01:38:28 +0000 (17:38 -0800)]
change int init_cLevel() to int init_cLevel(void)
Yann Collet [Thu, 20 Dec 2018 01:25:58 +0000 (17:25 -0800)]
added system error strings
to more failure cases in fileio.c
as requested by fbpkg
Yi Jin [Thu, 20 Dec 2018 01:09:54 +0000 (17:09 -0800)]
edit README.md
Yi Jin [Thu, 20 Dec 2018 01:06:56 +0000 (17:06 -0800)]
add a section on restricted support of environment variables to README.md
Yann Collet [Thu, 20 Dec 2018 00:54:15 +0000 (16:54 -0800)]
fixed OSSfuzz 11849
The problem was already masked,
due to no longer accepting tiny blocks for statistics.
But in case it could still happen with not-so-tiny blocks,
there is a stricter control which ensures that
nothing was already loaded prior to statistics collection.
Yi Jin [Thu, 20 Dec 2018 00:45:42 +0000 (16:45 -0800)]
refactor readU32FromChar(...), improve init_cLevel(...), and add env var ZSTD_CLEVEL tests
Nick Terrell [Thu, 20 Dec 2018 00:24:59 +0000 (16:24 -0800)]
[regression] Add more configs
* Add configs that test multithreading, LDM, and setting explicit
parameters.
* Update the `compress cctx` method to accept `ZSTD_parameters`.
* Compile against the multithreaded `libzstd.a`.
* Update `results.csv` for the new configs.
Unless you think there are more configs/methods I should test, I think
we have a fairly wide set of configs/methods, so I'll pause adding
more for now.
Yann Collet [Wed, 19 Dec 2018 23:00:15 +0000 (15:00 -0800)]
Merge pull request #1460 from facebook/btultra2.2
fixed: compression ratio discrepancy
Yann Collet [Wed, 19 Dec 2018 22:10:27 +0000 (14:10 -0800)]
added tests case
Yi Jin [Wed, 19 Dec 2018 21:26:27 +0000 (13:26 -0800)]
add support for setting compression level through environment variable ZSTD_CLEVEL
W. Felix Handte [Wed, 19 Dec 2018 20:36:10 +0000 (12:36 -0800)]
Use Unused Variable in ERR_getErrorString()
Yann Collet [Wed, 19 Dec 2018 18:43:27 +0000 (10:43 -0800)]
Merge pull request #1454 from lzutao/readme
README: Explain a little bit about Meson build
Yann Collet [Wed, 19 Dec 2018 18:11:06 +0000 (10:11 -0800)]
fixed: compression ratio discrepancy
depending on initialization,
the first byte of a new frame was invalidated or not.
As a consequence, one match opportunity was available or not,
resulting in slightly different compressed sizes
(on average, 1 or 2 bytes once every 20 frames).
It impacted ratio comparison between one-shot and streaming modes.
This fix makes the first byte of a new frame always a valid match.
Now compressed size is always the same.
It also improves compressed size by a negligible amount.
Lzu Tao [Sat, 15 Dec 2018 03:39:17 +0000 (10:39 +0700)]
README: Explain a bit more about Meson build [skip ci]
- Increase one heading level. Now headings is bigger and prettier.
Nick Terrell [Wed, 19 Dec 2018 01:03:54 +0000 (17:03 -0800)]
Merge pull request #1459 from terrelln/destroy
[zstdcli] Refuse to overwrite input file
Nick Terrell [Tue, 18 Dec 2018 23:40:27 +0000 (15:40 -0800)]
Also compare device thanks to @felixhandte
Nick Terrell [Tue, 18 Dec 2018 23:29:54 +0000 (15:29 -0800)]
[zstdcli] Refuse to overwrite input file
Compare the input and output files by their inode number and
refuse to open the output file if the input file is the same.
This doesn't work when (de)compressing multiple files to a single
file, but that is a very uncommon use case, mostly used for
benchmarking by me.
Fixes #1422.
Yann Collet [Tue, 18 Dec 2018 23:12:21 +0000 (15:12 -0800)]
Merge pull request #1458 from terrelln/estimate
[libzstd] Fix estimate with negative levels
Yann Collet [Tue, 18 Dec 2018 22:46:55 +0000 (14:46 -0800)]
Merge pull request #1457 from facebook/btultra2.1
btultra2 and very small input
Nick Terrell [Tue, 18 Dec 2018 22:24:49 +0000 (14:24 -0800)]
[libzstd] Fix estimate with negative levels
* Fix `ZSTD_estimateCCtxSize()` with negative levels.
* Fix `ZSTD_estimateCStreamSize()` with negative levels.
* Add a unit test to test for this error.
Yann Collet [Tue, 18 Dec 2018 21:40:07 +0000 (13:40 -0800)]
fix debug levels
as reported by @terrelln.
2 is reserved for temporary usage only.
W. Felix Handte [Tue, 18 Dec 2018 21:35:57 +0000 (13:35 -0800)]
Fix Incorrect assert()
W. Felix Handte [Thu, 6 Dec 2018 20:32:32 +0000 (12:32 -0800)]
Add Logic to Makefile to Convert Make Vars to Defines
W. Felix Handte [Thu, 6 Dec 2018 18:32:36 +0000 (10:32 -0800)]
Document Macros in README
W. Felix Handte [Wed, 5 Dec 2018 22:04:57 +0000 (14:04 -0800)]
Add Contbuild Tests
W. Felix Handte [Tue, 4 Dec 2018 19:52:40 +0000 (11:52 -0800)]
Add Mutual-Exclusion Error
W. Felix Handte [Tue, 4 Dec 2018 19:44:02 +0000 (11:44 -0800)]
Add HUF_FORCE_DECOMPRESS_X2
W. Felix Handte [Tue, 4 Dec 2018 19:42:59 +0000 (11:42 -0800)]
Move HUF_DGEN Up Out of X1 Definitions
W. Felix Handte [Tue, 4 Dec 2018 19:24:36 +0000 (11:24 -0800)]
Refactor Huffman Decompression Away From Ternary Tree in ZSTD_decodeLiteralsBlock
W. Felix Handte [Tue, 4 Dec 2018 18:01:58 +0000 (10:01 -0800)]
Rename HUF_DECOMPRESS_MINIMAL -> HUF_FORCE_DECOMPRESS_X1
W. Felix Handte [Tue, 4 Dec 2018 01:36:24 +0000 (17:36 -0800)]
Add ZSTD_FORCE_DECOMPRESS_SEQUENCES_LONG
This macro forces behavior in the opposite direction.
W. Felix Handte [Tue, 4 Dec 2018 01:28:02 +0000 (17:28 -0800)]
Rename ZSTD_DECOMPRESS_MINIMAL -> ZSTD_FORCE_DECOMPRESS_SEQUENCES_SHORT
W. Felix Handte [Sat, 17 Nov 2018 00:44:41 +0000 (16:44 -0800)]
Remove Error Strings with ZSTD_STRIP_ERROR_STRINGS
W. Felix Handte [Sat, 17 Nov 2018 00:43:57 +0000 (16:43 -0800)]
Add Option to Not Request Inlining with ZSTD_NO_INLINE
W. Felix Handte [Fri, 16 Nov 2018 23:02:11 +0000 (15:02 -0800)]
Add ZSTD_DECOMPRESS_MINIMAL Macro, Which Reduces Branching of Decompress Variants
W. Felix Handte [Fri, 16 Nov 2018 23:30:49 +0000 (15:30 -0800)]
Totally Hide/Disable X2 Variants when HUF_DECOMPRESS_MINIMAL is Defined
W. Felix Handte [Fri, 16 Nov 2018 23:28:53 +0000 (15:28 -0800)]
Load Dictionaries as X1 Tables
W. Felix Handte [Fri, 16 Nov 2018 23:01:50 +0000 (15:01 -0800)]
Add HUF_DECOMPRESS_MINIMAL Macro, Which Avoids Using X2 Variants
Yann Collet [Tue, 18 Dec 2018 20:32:58 +0000 (12:32 -0800)]
btultra2 and very small srcSize
When srcSize is small,
the nb of symbols produced is likely too small to warrant dedicated probability tables.
In which case, predefined distribution tables will be used instead.
There is a cheap algorithm in btultra initialization :
it presumes default distribution will be used if srcSize <= 1024.
btultra2 now uses the same threshold to shut down probability estimation,
since measured frequencies won't be used at entropy stage,
and therefore relying on them to determine sequence cost is misleading,
resulting in worse compression ratios.
This fixes btultra2 performance issue on very small input.
Note that, a proper way should be
to determine which symbol is going to use predefined probaility
and which symbol is going to use dynamic ones.
But the current algorithm is unable to make a "per-symbol" decision.
So this will require significant modifications.
Yann Collet [Tue, 18 Dec 2018 17:45:53 +0000 (09:45 -0800)]
Merge pull request #1449 from facebook/ovlog_def
overlapLog default values
Yann Collet [Tue, 18 Dec 2018 17:24:18 +0000 (09:24 -0800)]
Merge pull request #1456 from yijinfb/example-ZSTD_compressCCtx
Add multiple_simple_compression.c (demonstrates the use of ZSTD_compressCCtx(...)) to examples directory.
Yi Jin [Tue, 18 Dec 2018 00:54:55 +0000 (16:54 -0800)]
break loadFile_orDie() into 2: loadFile_orDie() loads file into a pre-allocated memory buffer, mallocAndLoadFile_orDie() allocates memory first, then calls loadFile_orDie()
Yann Collet [Mon, 17 Dec 2018 23:48:34 +0000 (15:48 -0800)]
play around with rescale weights
Yi Jin [Mon, 17 Dec 2018 06:44:27 +0000 (22:44 -0800)]
bug fix in loadFile_orDie(): exit with error code if filesize is bigger than provided buffer
Yi Jin [Mon, 17 Dec 2018 05:27:52 +0000 (21:27 -0800)]
comment out printf() to make output terse
Yi Jin [Mon, 17 Dec 2018 05:09:21 +0000 (21:09 -0800)]
edit README.md and remove simple_compressionCCtx.c
Yi Jin [Mon, 17 Dec 2018 04:45:43 +0000 (20:45 -0800)]
add multiple_simple_compression.c
Yi Jin [Sun, 16 Dec 2018 23:36:28 +0000 (15:36 -0800)]
Factor out allocMemory_orDIe(...) in simple_compressionCCtx.c, and amend Makefile to account for dependency on utils.h
Yi Jin [Sat, 15 Dec 2018 06:10:31 +0000 (22:10 -0800)]
formatting
Yi Jin [Sat, 15 Dec 2018 02:12:05 +0000 (18:12 -0800)]
refactor utils.h and implement simple_compressionCCtx.c
Yann Collet [Sat, 15 Dec 2018 00:50:41 +0000 (16:50 -0800)]
Merge pull request #1452 from lzutao/meson_getversion
meson: Remove unused sys import
Nick Terrell [Fri, 14 Dec 2018 19:50:59 +0000 (11:50 -0800)]
Merge pull request #1450 from terrelln/no-progress
[zstdcli] Add --no-progress flag
Nick Terrell [Fri, 14 Dec 2018 01:17:32 +0000 (17:17 -0800)]
[zstdcli] Add --no-progress flag
The `--no-progress` flag disables zstd's progress bars, but leaves
the summary.
I've added simple tests to `playTests.sh` to make sure the parsing
works.
Yann Collet [Fri, 14 Dec 2018 17:18:37 +0000 (09:18 -0800)]
Merge pull request #1447 from lzutao/meson_symlink_soversion
meson: More accurate Windows build support
Yi Jin [Fri, 14 Dec 2018 06:51:35 +0000 (22:51 -0800)]
WIP
Lzu Tao [Fri, 14 Dec 2018 04:03:04 +0000 (11:03 +0700)]
meson: Remove unused sys import
Yann Collet [Fri, 14 Dec 2018 00:50:19 +0000 (16:50 -0800)]
fixed tests
with correct pointer type
Yann Collet [Fri, 14 Dec 2018 00:38:08 +0000 (16:38 -0800)]
fixed default job size
Nick Terrell [Fri, 14 Dec 2018 00:21:15 +0000 (16:21 -0800)]
Merge pull request #1446 from terrelln/overflow
[libzstd] Fix infinite loop in decompression
Yann Collet [Thu, 13 Dec 2018 23:47:34 +0000 (15:47 -0800)]
zstdmt parameter getter/setter use `int`
Yi Jin [Thu, 13 Dec 2018 23:42:55 +0000 (15:42 -0800)]
create simple_compressionCCtx.c out of simple_compression.c, to be worked on
Nick Terrell [Wed, 12 Dec 2018 23:26:35 +0000 (15:26 -0800)]
[libzstd] Fix infinite loop in decompression
When we switched `ZSTD_SKIPPABLEHEADERSIZE` to a macro, the places where we do:
MEM_readLE32(ptr) + ZSTD_SKIPPABLEHEADERSIZE
can now overflow `(unsigned)-8` to `0` and we infinite loop. We now check
the frame size and reject sizes that overflow a U32.
Note that this bug never made it into a release, and was only in the dev branch
for a few days.
Credit to OSS-Fuzz
Yann Collet [Thu, 13 Dec 2018 20:14:36 +0000 (12:14 -0800)]
fixed multiple conversions
from 64-bit to 32-bit
Yann Collet [Thu, 13 Dec 2018 20:04:10 +0000 (12:04 -0800)]
Merge pull request #1448 from lzutao/travis_reformat
travis: Use script instead of Cmd env
Lzu Tao [Thu, 13 Dec 2018 18:38:06 +0000 (01:38 +0700)]
travis: Use script instead of Cmd env
Lzu Tao [Thu, 13 Dec 2018 11:07:01 +0000 (18:07 +0700)]
Simplify logic by setting default value for MESON_INSTALL_DESTDIR_PREFIX
Lzu Tao [Thu, 13 Dec 2018 07:57:33 +0000 (14:57 +0700)]
meson: Update man1 extension on meson 0.49.0
Lzu Tao [Thu, 13 Dec 2018 07:57:08 +0000 (14:57 +0700)]
meson: Update meson symlink script usage
Lzu Tao [Tue, 4 Dec 2018 18:12:11 +0000 (01:12 +0700)]
meson: Correct support for building on Windows
Let soversion base on version if not set. For example, if version is 3.6.0
and soversion is not defined, it is set to 3.
Lzu Tao [Mon, 3 Dec 2018 15:13:29 +0000 (22:13 +0700)]
Replace many os.path methods with pathlib one's
Use MESON_INSTALL_DESTDIR_PREFIX variable instead of DESTDIR.
Yann Collet [Thu, 13 Dec 2018 05:09:14 +0000 (21:09 -0800)]
fixed ovlog tests
and updated man page
Yann Collet [Thu, 13 Dec 2018 05:09:01 +0000 (21:09 -0800)]
Merge pull request #1444 from facebook/btultra2
btultra2