Nick Terrell
1c3cb2c05c
[contrib] Add preprocessor hardwiring to freestanding.py
2020-09-09 14:35:39 -07:00
Nick Terrell
79ded1b4a9
[lib] Add ZSTD_NO_UNUSED_FUNCTIONS macro to hide unused functions
...
The unused function definitions are hidden behind a
`#ifndef ZSTD_NO_UNUSED_FUNCTIONS` check.
Initially hiding all functions which are unused and take up more than
2KB of stack space, because these will show up as warnings in the
Linux Kernel build system.
2020-09-09 14:35:39 -07:00
Nick Terrell
ac3a136b0a
[lib] Replace 64-bit divisions with ZSTD_div64()
2020-09-09 14:35:39 -07:00
Nick Terrell
a90779397a
[lib] Reduce zstd stack usage by 1KB
2020-09-09 14:35:39 -07:00
Nick Terrell
046aca190f
Fix ZSTD_initCStream_advanced() with no dictionary and static allocation
2020-09-09 14:35:39 -07:00
Nick Terrell
e975de289c
Add ZSTD_NO_INTRINSICS macro to avoid explicit intrinsics
2020-09-09 14:35:39 -07:00
Nick Terrell
f91ed5c766
[lib] s/current/curr because it collides with Linux Kernel macro
2020-09-09 14:35:39 -07:00
Nick Terrell
5e4efd22d4
Merge pull request #2291 from i-do-cpp/fix-compression-level-default
...
Fix setParameter not falling back to default compression level
2020-09-08 16:42:34 -07:00
Felix Handte
8db661dd7f
Merge pull request #2294 from felixhandte/makefile-lib-fix-var-order
...
Fix Makefile Variable Concatenation Order
2020-09-04 10:58:57 -04:00
W. Felix Handte
75bc289911
Fix Makefile Variable Concatenation Order
...
Previously, this construct would add `-O3` onto the end of the compiler flags
variable, **after** `MOREFLAGS`, which meant that it was impossible to over-
ride. This commit fixes this order and should otherwise be a no-op.
2020-09-03 17:30:29 -04:00
Nick Terrell
6da8acd231
Merge pull request #2293 from allanjude/coverity
...
Resolve Coverity 1432392 Unintentional integer overflow
2020-09-03 13:58:45 -07:00
Allan Jude
8665793164
Resolve Coverity 1432392 Unintentional integer overflow
...
Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)
overflow_before_widen: Potentially overflowing expression:
cdict->dictContentSize * 6U
with type unsigned int (32 bits, unsigned) is evaluated using 32-bit
arithmetic, and then used in a context that expects an expression of
type U64 (64 bits, unsigned).
2020-09-03 19:31:50 +00:00
Nick Terrell
bcedab0731
Merge pull request #2279 from senhuang42/show_warnings_with_multiple_input_files
...
Add a warning whenever (de)compressing multiple files
2020-09-02 11:32:11 -07:00
senhuang42
dbe5305250
Adjusted extra explanation warning to always pop up if applicable
2020-09-02 08:44:42 -04:00
senhuang42
99039988a5
Fixed newline issue and adjusted wording in comment
2020-09-01 13:18:30 -04:00
i-do-cpp
aec8b27fff
Update zstd_compress.c
2020-08-31 09:34:08 +02:00
i-do-cpp
d514281e73
Fix setParameter not falling back to default compression level on 0 value
...
See documentation for `ZSTD_c_compressionLevel`: `Special: value 0 means default, which is controlled by ZSTD_CLEVEL_DEFAULT`
2020-08-31 09:25:43 +02:00
senhuang42
01828b27e2
Improve documentation, update man
2020-08-27 17:57:20 -04:00
Yann Collet
c6d5a2cad0
Merge pull request #2288 from animalize/doc_version
...
[doc] Add ZSTD_versionString() to manual
2020-08-27 12:32:07 -07:00
animalize
6365e0e32f
Add ZSTD_versionString() function to manual.
2020-08-27 13:51:22 +08:00
Nick Terrell
4c408866f0
Merge pull request #2264 from terrelln/zstd-kernel
...
Prepare for freestanding library and add initial translator script
2020-08-26 18:15:25 -07:00
senhuang42
7e867ad61f
Fix potential memory leak
2020-08-26 18:52:32 -04:00
senhuang42
ef11aadc0c
Fix UTIL_requireUserConfirmation() declaration
2020-08-26 17:20:37 -04:00
senhuang42
7991c55181
Move logic into new function FIO_removeMultiFilesWarning, add support for decompression
2020-08-26 16:50:20 -04:00
senhuang42
3aec385a10
Fix merge conflicts
2020-08-26 15:43:38 -04:00
Nick Terrell
ae455dde08
[contrib] Add freestanding translator prototype
...
This is the idea, some of the functionality isn't yet implemented.
2020-08-26 12:26:05 -07:00
Nick Terrell
c465f24457
ZSTD_ prefix mem{cpy,move,set},malloc,calloc,free
2020-08-26 12:26:03 -07:00
Nick Terrell
a686d306d2
Rename ZSTD_{malloc,calloc,free} to ZSTD_custom{Malloc,Calloc,Free}
2020-08-26 12:25:08 -07:00
Nick Terrell
80f577baa2
Move standard includes to zstd_deps.h
2020-08-26 12:25:08 -07:00
Yann Collet
a8c66881e5
Merge pull request #2283 from senhuang42/progress_bars_for_multiple_files
...
Refreshing progress bar for processing multiple files
2020-08-26 11:54:50 -07:00
Nick Terrell
cf83aceaf3
Merge pull request #2282 from terrelln/ncount-fix
...
[bug] Fix FSE_readNCount()
2020-08-26 10:31:07 -07:00
senhuang42
ead2387a7e
Remove extraneous FIO_setNbFiles()
2020-08-26 12:05:04 -04:00
senhuang42
fed7e7850b
Fix bug in user prompt where line was not flushed on negative response
2020-08-26 11:57:38 -04:00
senhuang42
a73e131f10
Adjust playTests.sh refuse overwrite test to include -q
2020-08-26 11:40:05 -04:00
senhuang42
b6abbc3ce5
Fix single file decompression summary, remove escape code dependency, add currFileIdx field to FIO_prefs, general cleanups/bugfixes
2020-08-26 11:35:07 -04:00
Nick Terrell
3bcdcaa042
Merge pull request #2285 from terrelln/oss-fuzz-fixes
...
[fuzz] Fix oss-fuzz test problems
2020-08-25 18:35:16 -07:00
Yann Collet
eef88dcfea
Merge pull request #2284 from terrelln/github-actions-arm
...
[github actions] Disable armbuild and armfuzz tests
2020-08-25 17:50:12 -07:00
Nick Terrell
ae163015b1
[fuzz] Fix stream_decompress timeouts
2020-08-25 17:13:09 -07:00
Nick Terrell
49eeb2d1fc
[fuzz] Disable superblock expansion test
2020-08-25 17:13:06 -07:00
Nick Terrell
51dd7e69f9
[github actions] Disable armbuild and armfuzz tests
2020-08-25 16:28:41 -07:00
Nick Terrell
4193638996
[bug] Fix FSE_readNCount()
...
* Fix bug introduced in PR #2271
* Fix long-standing bug that is impossible to trigger inside of zstd
* Add a fuzzer that makes sure the normalized count always round trips
correctly
2020-08-25 15:42:41 -07:00
senhuang42
96222cd195
Small formatting changes
2020-08-25 18:03:08 -04:00
senhuang42
47a9ad2ae3
Remove decompression status update
2020-08-25 17:54:00 -04:00
senhuang42
acee48d4c1
Small cleanups
2020-08-25 17:34:00 -04:00
senhuang42
a3401ca7d0
Make compatible with displaylevel = 2 and decompression
2020-08-25 17:23:47 -04:00
senhuang42
da38891a87
Add initial live update with displayLevel = 2, add new field to FIO_prefs_t
2020-08-25 16:46:47 -04:00
Yann Collet
f82d9865b9
Merge pull request #2278 from senhuang42/ignore_checksum_advanced_param
...
New advanced decompression param to ignore checksums
2020-08-25 12:08:53 -07:00
senhuang42
7a7cd8861a
Add initial functionality to support -q
2020-08-25 13:50:44 -04:00
senhuang42
aab11ce3db
Unified warning prompts into new function UTIL_requireUserConfirmationToProceed()
2020-08-25 11:25:49 -04:00
Nick Terrell
614e446000
Merge pull request #2271 from terrelln/small-blocks
...
Small block optimizations
2020-08-24 18:54:33 -07:00