Yann Collet
306e922f60
fixed environment variables
2020-05-21 18:06:43 -07:00
Yann Collet
5d0c8a0770
Merge branch 'dev' into visual_playTests
2020-05-21 16:45:02 -07:00
Yann Collet
26b21e481f
fix meson playTests.sh
2020-05-21 15:17:22 -07:00
Yann Collet
a63810e2ac
try to fix PPC64 Qemu tests
2020-05-21 10:26:40 -07:00
Yann Collet
ad0c0d1946
fixed appveyor long tests
...
playTests changed variable name
2020-05-21 00:53:57 -07:00
Yann Collet
14aaa5290a
fixed zbuff test
...
error introduced in https://github.com/facebook/zstd/blame/3b39ce6b527c5cfe395a187c75b77baf5cc7de02/.travis.yml#L192
2020-05-21 00:22:52 -07:00
Yann Collet
18082ce85a
updated CHANGELOG for v1.4.5
2020-05-15 17:19:00 -07:00
Yann Collet
f22b371e31
updated documentation for v1.4.5
...
API manual and man pages
2020-05-14 16:17:03 -07:00
Yann Collet
e001715b3d
fixed asan test
2020-05-11 20:35:47 -07:00
Yann Collet
20bd246045
blindfix for VS macro redefinition
2020-05-11 19:29:36 -07:00
Yann Collet
76e726e3be
updated documentation for ZSTD_estimate*()
...
make it clearer that tighter memory estimation
can be provided using advanced functions
on the condition of a defined input size bound.
2020-05-11 19:21:50 -07:00
Yann Collet
91ad01218e
updated initStatic tests
...
differentiate small CCtx for small inputs
from full CCtx
from CStream contexts.
Ensure allocation & resize tests are more precise.
2020-05-11 18:50:10 -07:00
Yann Collet
608f1bfc4c
fixed context downsize with initStatic
...
When context is created using initStatic,
no resize is possible.
fix : only bump oversizeDuration when !initStatic
2020-05-11 18:16:38 -07:00
Yann Collet
58227db405
Merge branch 'dev' into initStatic_tests
2020-05-11 16:51:13 -07:00
Yann Collet
37b2dafbed
minor clarification on -o file
2020-05-08 14:20:47 -07:00
Yann Collet
5c67a4e737
Merge branch 'dev' of github.com:facebook/zstd into dev
2020-05-08 14:15:56 -07:00
Yann Collet
e5366bee16
updated zstd -h
...
to help readability.
Group arguments into categories,
try to give better visibility to more common arguments.
2020-05-08 14:14:46 -07:00
Yann Collet
d564d56440
document additional compilation macros
...
ZSTD_NOBENCH, ZSTD_NODICT, ZSTD_NOCOMPRESS, ZSTD_NODECOMPRESS
2020-05-08 13:35:59 -07:00
Yann Collet
4f2cb944a8
Merge branch 'dev' into clevel_doc
2020-05-08 11:59:45 -07:00
Yann Collet
e873697625
updated documentation regarding ZSTD_CLEVEL
...
make it clearer that it's useful for `tar --zstd`.
2020-05-08 10:51:37 -07:00
Yann Collet
4f755bdafc
faster cygwin test
...
The cygwin test on Appveyor is way too long (>30 mn).
The main issue is the very long zstreamtest, because no time out has been programmed.
Ensures that both fuzzer and zstreamtest receive a 30sec slot.
Should reduce cygwin tests duration by -30mn.
2020-05-05 14:08:35 -07:00
Yann Collet
ef7d98e55a
Merge branch 'dev' into hufc_wconv
2020-05-05 10:23:00 -07:00
Yann Collet
c29fd7cd8b
some more conversion warnings
...
hunting down some static analyzer warnings
2020-05-05 10:16:59 -07:00
Yann Collet
c1b836f4c3
fix minor conversion warnings
2020-05-04 14:43:09 -07:00
Yann Collet
7ea2ae6649
added test linking user program to multi-threaded libzstd
2020-04-28 21:18:29 -07:00
Yann Collet
f77fd5ced0
generalized pattern rules
2020-04-28 18:43:55 -07:00
Yann Collet
c6ae2e83bc
fix libzstd-mt underlinking issue
...
fix #2045
When compiling `libzstd` in multithreading mode,
the `libzstd-mt` recipe would not include `-pthread`,
resulting in an underlinked dynamic library.
Added a test on Travis to check that the library is fully linked.
This makes it possible, in some future release,
to build a multi-threaded `libzstd` dynamic library by default
as it would no longer impact the build script of user programs.
2020-04-28 18:29:20 -07:00
Yann Collet
f17ac423b2
new tests created new artifacts
...
they were not properly ignored
2020-04-28 15:58:22 -07:00
Yann Collet
458a1a1723
minor refactor
...
- fix a few comments
- reorder some parameters, to enforce "mutable references first"
- simplified fwriteSparse()
2020-04-13 14:09:57 -07:00
Yann Collet
d2464776d1
man page : added --verbose long command
...
also updated `zstd.1`
stacking prior updates completed on `zstd.1.md`.
2020-02-26 14:29:30 -08:00
Yann Collet
5c769e33f8
Merge branch 'dev' of github.com:facebook/zstd into dev
2020-01-24 15:04:02 -08:00
Yann Collet
f34eab162f
updated CHANGELOG
2020-01-24 14:12:25 -08:00
Yann Collet
3119256267
updated CHANGELOG
...
one missing item in v1.4.4
2020-01-07 09:51:22 -08:00
Yann Collet
5120883a9c
bumped version number
...
so that potential issue report do not confuse `dev` with latest release
2019-12-03 17:06:42 -08:00
Yann Collet
4b4de7493f
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.
2019-12-02 16:19:03 -08:00
Yann Collet
a49417b5af
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.
2019-12-02 14:28:18 -08:00
Yann Collet
d5b4a7ea58
removed scanbuild workaround
2019-11-26 17:46:57 -08:00
Yann Collet
ecaf3ce103
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
2019-11-26 16:44:56 -08:00
Yann Collet
96ee20758c
assembleFNT() can no longer fail
2019-11-26 15:44:33 -08:00
Yann Collet
aaab618ae9
pushed aside stdio.h too
...
since only UTIL_DISPLAY() depended on it.
2019-11-26 15:25:32 -08:00
Yann Collet
7543cd055c
moved UTIL_DISPLAY() inside util.c
2019-11-26 15:21:58 -08:00
Yann Collet
a684b82774
util: isolated some dependencies
...
from *.h to *.c
so that they don't get transitively included
into users of util.h.
2019-11-26 15:16:53 -08:00
Yann Collet
f57be339ab
travisCI : removed trusty generic statement
...
trusty is out of long term support.
let's run (most) tests on "current" platform.
2019-11-26 15:01:16 -08:00
Yann Collet
2d9fad4f52
fixed minor VS warning, on parameter difference
...
complaining about a `const` property on one side but not the other.
2019-11-26 14:53:37 -08:00
Yann Collet
f622c0adf3
switched UTIL_refFilename() to an assert()
2019-11-26 14:48:23 -08:00
Yann Collet
46bdbb9c06
Merge branch 'dev' into ahmed_file
2019-11-26 14:33:04 -08:00
Yann Collet
49cacd858b
fixed fifo test
2019-11-26 14:18:09 -08:00
Yann Collet
c71bd45a3b
Merge branch 'dev' into ahmed_file
2019-11-26 11:20:26 -08:00
Yann Collet
87ae7b940b
travisCI: moved compatibility tests to dev
...
they are fast enough, and we want to catch such incompatibility early
2019-11-26 10:30:43 -08:00
Yann Collet
1d7adee68e
moved meson and versions compatibility tests to master/cron
...
also : joined c99 compatibility tests with gnu90 and c++ ones
2019-11-26 10:28:21 -08:00
Yann Collet
228a6d28cd
travis : added test durations
...
as a guide when doing test selection
2019-11-26 10:24:09 -08:00
Yann Collet
5e657aca90
silence scan-build false positive
...
blind attempt
2019-11-25 15:50:58 -08:00
Yann Collet
9a3de0a535
changed name from createX to assembleX
...
shows that the resulting object just takes ownership of provided buffer.
2019-11-25 15:34:55 -08:00
Yann Collet
b1de3ecdd5
fix mode_t on Windows
2019-11-25 13:59:35 -08:00
Yann Collet
9a22140ef4
created UTIL_chmod()
...
protecting "/dev/null" from having its permissions changed.
also : minor : improved consistency of util.h API
2019-11-25 13:45:22 -08:00
Yann Collet
60db21a677
added decompression into /dev/null tests
2019-11-25 10:53:03 -08:00
Yann Collet
7aaac3f69c
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.
2019-11-25 10:35:36 -08:00
Yann Collet
762a0dfc45
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.
2019-11-22 17:32:07 -08:00
Yann Collet
098b36e9ab
clarifications for Block_Maximum_Size
...
as a follow up of #1882
2019-11-13 09:50:15 -08:00
Yann Collet
2ed5344e84
added target zstd-dictBuilder
...
check that the dictBuilder can be compiled
with only lib/common and lib/compress as dependencies.
2019-11-06 15:46:58 -08:00
Yann Collet
9df49dc50a
Visual compiler bug work-around
2019-11-06 15:23:44 -08:00
Yann Collet
be34969e5c
minor man page fix
2019-11-06 15:07:35 -08:00
Yann Collet
aea2ff5d8d
fixed wrong assert() in regression driver
2019-11-06 14:56:21 -08:00
Yann Collet
485fec5665
removed experimental_dict_builders
...
no longer required,
can still be accessed by going to back to an earlier commit or release (<= v1.4.4)
2019-11-06 14:43:14 -08:00
Yann Collet
a7e33e3e10
updated fuzz tests to use FileNamesTable* abstraction
2019-11-06 14:42:13 -08:00
Yann Collet
31a0abbfda
updated pzstd and largeNbDicts to use the new FileNamesTable* abstraction
2019-11-06 09:10:05 -08:00
Yann Collet
7977899538
updated zwrapbench to use FileNamesTable* abstraction
2019-11-05 17:25:20 -08:00
Yann Collet
b09f59390b
refactor code to only use FileNamesTable*
2019-11-05 17:02:43 -08:00
Yann Collet
76b9e42b0b
refactoring (simplification) of util.h public API
2019-11-05 14:59:45 -08:00
Yann Collet
81c51483e9
Merge branch 'dev' into ahmed_file
2019-11-05 14:44:12 -08:00
Yann Collet
305ac2653e
update table benchmark with zstd v1.4.4
2019-11-04 10:59:59 -08:00
Yann Collet
d770a2a89f
fixed zlibwrapper build script
2019-10-31 10:47:06 -07:00
Yann Collet
ae3d35dc8e
updated CHANGELOG for v1.4.4
2019-10-30 12:16:45 -07:00
Yann Collet
85df7a4da8
added test which can overflow internal list of filenames
2019-10-28 16:05:42 -07:00
Yann Collet
65f2d97f33
updated UTIL_createFileNamesTable() inline documentation
2019-10-28 15:20:40 -07:00
Yann Collet
170982fbd9
added symlink test for --filelist=FILE
2019-10-28 15:15:26 -07:00
Yann Collet
d9c634e13b
return final \0 directly from readLine()
2019-10-28 15:03:32 -07:00
Yann Collet
d7f258d845
change command name to --filelist=
...
updated documentation and man page
2019-10-28 13:54:36 -07:00
Yann Collet
a78a8759a2
Merge branch 'dev' into ahmed_file
2019-10-28 13:43:28 -07:00
Yann Collet
6d5e0f1c9f
Merge branch 'dev' of github.com:facebook/zstd into dev
2019-10-28 12:57:23 -07:00
Yann Collet
faddd2aa1d
updated CHANGELOG for v1.4.4
2019-10-28 12:57:05 -07:00
Yann Collet
74065da4c5
updated API inline doc and manual
...
regarding ZSTD_CDict created without a dictBuffer.
2019-10-28 11:15:41 -07:00
Yann Collet
12efa1ed89
yet another minor visual conversion warning
...
this time for 32-bit systems
2019-10-26 00:27:32 -07:00
Yann Collet
3e5c81ea36
fixed another minor conversion warning on Visual
...
and made CONTROL() use exit() instead of abort().
2019-10-26 00:01:11 -07:00
Yann Collet
74d872e987
fix minor conversion warning on 32-bit
2019-10-25 18:26:30 -07:00
Yann Collet
b40eaced94
minor cosmetic refactoring
2019-10-25 18:16:45 -07:00
Yann Collet
5fb84ca2cf
no need to track tableBuf
...
free() is compatible with NULL,
let's free() unconditionnally
2019-10-25 17:34:29 -07:00
Yann Collet
8e414b586d
test resilience on garbage file
...
and clean traces
2019-10-25 17:01:26 -07:00
Yann Collet
1ead0c5d5a
improved --file=FILE implementation
...
pass basic tests
2019-10-25 16:36:59 -07:00
Yann Collet
42a22af78b
fix zlibWrapper for Visual Studio
...
As per https://github.com/facebook/zstd/issues/1800#issuecomment-545945050 ,
Visual does not support `ssize_t` type,
which is an issue for `gzread.c`.
Added a work around, suggested by @bluenlive
Note : I have not been able to confirm the problem,
so this is a blind fix.
This seems safe outside of Visual, since it is gated by _MSC_VER macro.
2019-10-24 15:19:05 -07:00
Yann Collet
63e435dda1
improve deprecation warning macro
...
fix #1488
although, curiously enough, I was never able to reproduce the issue
(according to the bug report, it should be present while using gcc 4.8).
2019-10-23 11:59:32 -07:00
Yann Collet
f966cd080a
added documentation on DYNAMIC_BMI2 build macro
2019-10-22 17:43:09 -07:00
Yann Collet
5d5c895b18
fix initCStream_advanced() for fast strategies
...
Compression ratio of fast strategies (levels 1 & 2)
was seriously reduced, due to accidental disabling of Literals compression.
Credit to @QrczakMK, which perfectly described the issue, and implementation details,
making the fix straightforward.
Example : initCStream with level 1 on synthetic sample P50 :
Before : 5,273,976 bytes
After : 3,154,678 bytes
ZSTD_compress (for comparison) : 3,154,550
Fix #1787 .
To follow : refactor the test which was supposed to catch this issue (and failed)
2019-10-22 15:01:38 -07:00
Yann Collet
111b0c53b0
update documentation on deprecated functions
...
mostly : note that these functions will soon generate deprecation warnings
2019-10-22 13:51:18 -07:00
Yann Collet
989e0f0cee
Added --output-dir-flat=
...
which is a preferred construction when applicable.
Also, added --output-dir-flat into man page.
2019-10-21 14:39:18 -07:00
Yann Collet
bad35bd307
turned off zlib tests during msan
...
since the local zlib library is not msan-instrumented
2019-10-21 12:55:39 -07:00
Yann Collet
632e07747c
minor refactor of FIO_compressGzFrame()
...
mostly narrowing variables lifetime and mutability.
2019-10-21 12:14:59 -07:00
Yann Collet
ff7bd16c0a
clarifications for the FSE decoding table
...
requested in #1782
2019-10-18 17:48:12 -07:00
Yann Collet
ed65210c9b
Merge branch 'dev' of github.com:facebook/zstd into dev
2019-10-18 17:23:39 -07:00
Yann Collet
ca73c218be
added mode documentation on ZSTD_CLEVEL
...
providing range restriction [1-19] explicitly
partially answering #1829
2019-10-18 17:22:45 -07:00