Bimba Shrestha
56415efc76
Constifying, malloc check and naming nit
2019-12-17 17:16:51 -08:00
Bimba Shrestha
5225dcfc0f
Adding bool to check if enough room left for noCompress superblocks
2019-12-13 15:47:28 -08:00
Yann Collet
d73e2fb465
Merge pull request #1891 from bimbashrestha/oss
...
[fuzz] Superblock fuzz issues
2019-12-10 13:17:00 -08:00
Bimba Shrestha
e1913dc87f
Making const, removing unnecessary indent, changing parameter order
2019-12-04 15:51:17 -08:00
Bimba Shrestha
2ec556fec2
Moving init/end functions, moving compressSuperBlock inside body()
2019-12-04 15:23:13 -08:00
Bimba Shrestha
ffb0463041
Refactor
2019-12-04 14:52:27 -08:00
Bimba Shrestha
49c6d49247
[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
2019-12-04 10:02:17 -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
Bimba Shrestha
1fc9352f81
Using bss var instead of creating new bool
2019-12-02 21:39:06 -08:00
Bimba Shrestha
1f681d8592
Merge branch 'oss' of https://github.com/bimbashrestha/zstd into oss
2019-11-27 10:56:54 -08:00
Bimba Shrestha
a3a3c62b81
[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
2019-11-26 12:24:19 -08:00
Bimba Shrestha
d4e17d0776
Negating bool, updating bool on inner branches
2019-11-26 12:17:43 -08:00
Nick Terrell
718f00ff6f
Optimize decompression speed for gcc and clang ( #1892 )
...
* Optimize `ZSTD_decodeSequence()`
* Optimize Huffman decoding
* Optimize `ZSTD_decompressSequences()`
* Delete `ZSTD_decodeSequenceLong()`
2019-11-25 18:26:19 -08:00
Bimba Shrestha
826b555463
Merge branch 'dev' into oss
2019-11-22 17:29:33 -08:00
Bimba Shrestha
10bce1919e
Mixed declration fix
2019-11-21 13:08:27 -08:00
Bimba Shrestha
0451accab1
Checking noCompressBlock explicitly for rep code confirmation
2019-11-21 13:06:26 -08:00
Nick Terrell
659e9f05cf
Fix null pointer addition
2019-11-20 18:36:04 -08:00
Yann Collet
2d4dcce55f
Merge pull request #1894 from felixhandte/doc-clarify-dctx-reset
...
Easy: Update Comment on `ZSTD_initDStream()`
2019-11-19 16:18:56 -08:00
Nick Terrell
e0d6daabac
Fix Appveyor failure
2019-11-19 11:12:26 -08:00
Bimba Shrestha
8f0c2d04c8
Going back to original flow but removing else return
2019-11-19 10:03:07 -08:00
W. Felix Handte
722149cf2b
Easy: Update Comment on ZSTD_initDStream()
2019-11-19 01:57:15 -05:00
Nick Terrell
6a7f65117e
Merge pull request #1866 from legrosbuffle/dev
...
Optimized loop bounds to allow the compiler to unroll the loop.
2019-11-18 16:16:30 -08:00
Nick Terrell
a839d6852c
Merge pull request #1888 from senhuang42/superblocks_fixed
...
RLE test and re-enable RLE in main compression loop
2019-11-18 16:09:33 -08:00
Bimba Shrestha
80586f5e80
Reversing condition order and forwarding error
2019-11-18 13:53:55 -08:00
Bimba Shrestha
dade64428f
Output regular uncompressed block when compressSequences fails
2019-11-18 08:43:14 -08:00
Bimba Shrestha
2d5d961a60
Typo in comment
2019-11-15 19:00:53 -08:00
Bimba Shrestha
dba767c0bb
Leaving room for checksum
2019-11-15 18:44:51 -08:00
Vincent Torri
6b5c10b48c
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"
2019-11-15 19:46:06 +01:00
Clement Courbet
b3c9fc27b4
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
2019-11-15 08:27:05 +01:00
Sen Huang
d9646dcbb5
Fixed main compression logic changes
2019-11-14 19:39:09 -05:00
Yann Collet
4b1ac69f19
Merge pull request #1868 from senhuang42/superblocks_fixed
...
Superblocks rebased for merge
2019-11-14 13:31:34 -08:00
Sen Huang
c26d32c91c
Change superblock #include to be last
2019-11-14 13:12:17 -05:00
Yann Collet
d67742bc5d
Merge pull request #1858 from senhuang42/dictionary_header_size
...
Method to get dictionary header size
2019-11-14 09:44:07 -08:00
Sen Huang
c85d10d0ea
Remove mixed declarations
2019-11-08 13:57:26 -05:00
Sen Huang
d9c475f3b3
Fix static analyze error, use proper bounds for dictEnd
2019-11-08 13:57:26 -05:00
Sen Huang
d06b90692b
Move asserts to loadZstdDictionary()
2019-11-08 13:57:26 -05:00
Sen Huang
b39149e156
Expose ZSTD_reset_compressedBlockState() to shared API
2019-11-08 13:57:26 -05:00
Sen Huang
6ce335371b
Add error forwarding to loadCEntropy(), make check for dictSize >= 8 from bad merge
2019-11-08 13:57:26 -05:00
Sen Huang
4a61aaf368
Remove redundant comment
2019-11-08 13:57:26 -05:00
Sen Huang
c787b351ea
Use ZSTD Error codes, improve explanation of ZSTD_loadCEntropy() and ZSTD_loadDEntropy()
2019-11-08 13:57:26 -05:00
Sen Huang
04fb42b4f3
Integrated refactor into getDictHeaderSize, now passes tests
2019-11-08 13:57:26 -05:00
Sen Huang
0bcaf6db08
First working pass at refactor of loadZstdDictionary()
2019-11-08 13:57:26 -05:00
Sen Huang
4b141b63e0
Revert "Move decompress symbols into zstd_internal.h, remove dependency"
...
This reverts commit a152b4c67a5266f611db4a2eac4a79003852a795.
2019-11-08 13:57:26 -05:00
Sen Huang
84404cff6e
Move decompress symbols into zstd_internal.h, remove dependency
2019-11-08 13:57:26 -05:00
Sen Huang
341e0641ed
Checks malloc() for failure, returns 0 if so
2019-11-08 13:57:26 -05:00
Sen Huang
97b7f712f3
Change to heap allocation, remove implicit type conversion
2019-11-08 13:57:25 -05:00
Sen Huang
3c36a7f13a
Add ZDICT_getHeaderSize()
2019-11-08 13:57:08 -05:00
Nick Terrell
8c474f9845
Fix parameter selection and adjustment with srcSize == 0
2019-11-07 08:58:43 -08:00
Felix Handte
5688447758
Merge pull request #1873 from felixhandte/make-overlap-log-multithread-only
...
Fix #1861 : Restrict overlapLog Parameter When Not Built With Multithreading
2019-11-06 16:56:37 -05:00
Felix Handte
ba4613602f
Merge pull request #1843 from moozzyk/issue-1637
...
Take ZSTD_parameters as a const pointer
2019-11-06 16:56:14 -05:00