Yann Collet
2964b8a6f6
fix #874
...
coverity reported a warning regarding a memcpy() overwrite.
This is a false positive (the memory area is large enough),
but it's true that it's not trivial to determine (encompassing struct),
and it's proper anyway to only memcpy() just the right amount of data.
2020-11-08 13:21:58 -08:00
Yann Collet
be634559e3
update obsolete section documentation
...
and update manuals.
fix #712
2020-11-08 12:54:59 -08:00
Yann Collet
c41be7e920
Merge pull request #942 from lz4/fix926
...
fix #926
2020-11-07 21:05:27 -08:00
Yann Collet
e251a84025
fix minor UBs
...
- check alignment before casting a pointer
- saveDict : don't memmove() on NULL dst
2020-11-07 19:42:57 -08:00
Yann Collet
b16b9fcdbc
added similar tests for LZ4_saveDict()
...
fast (non-HC) variant
2020-11-07 18:24:02 -08:00
Yann Collet
a2222a879f
fix #926
...
fix incorrect behavior of LZ4_saveDictHC()
when invoked right after initialization.
2020-11-07 18:12:26 -08:00
Yann Collet
1d02141bf8
Merge pull request #941 from lz4/revertinline
...
Revert "Replace "static" to "LZ4_FORCE_INLINE" for small functions"
2020-11-07 17:18:04 -08:00
Yann Collet
79a7c94017
Merge pull request #940 from lz4/fix935
...
fix #935
2020-11-07 16:12:41 -08:00
Yann Collet
f61eeb7793
Revert "Replace "static" to "LZ4_FORCE_INLINE" for small functions"
...
This reverts commit 0e3933edd4
.
2020-11-07 11:02:30 -08:00
Yann Collet
d4bfcf8489
fix #935
...
minor: identical declaration and prototypes of `LZ4HC_compress_optimal()`
also :
very minor optimization of `LZ4_memcpy_using_offset()`
2020-11-07 10:06:52 -08:00
Yann Collet
80d3f32904
Merge pull request #939 from lz4/fix927
...
LZ4F_decompress requires a valid dctx state
2020-11-07 09:37:27 -08:00
Yann Collet
27959b43ec
LZ4F_decompress requires a valid dctx state
...
This is now explicitly documented and asserted.
fix #927
2020-11-06 20:46:35 -08:00
Yann Collet
b5e2a4acd9
Merge pull request #936 from lz4/alignTest
...
More alignment tests
2020-11-06 20:27:42 -08:00
Yann Collet
67e661a2ad
static state size
...
for better inter-version compatibility
2020-11-06 18:26:13 -08:00
Yann Collet
211d653ff8
re-enable alignment test on all targets
2020-11-06 16:43:14 -08:00
Yann Collet
0c56f838ed
unified internal state declaration
...
align on `void*` instead : there is no `long long` inside the structure
2020-11-06 16:15:51 -08:00
Yann Collet
78433070ab
document LZ4_ALIGN_TEST
2020-11-06 14:48:43 -08:00
Yann Collet
e968a24129
unified alignment test
...
across lz4.c and lz4hc.c
2020-11-06 14:46:48 -08:00
Yann Collet
1008b8929e
Merge pull request #938 from terrelln/fuzzer-fix
...
[ossfuzz] Fix parallel builds
2020-11-06 10:34:05 -08:00
Nick Terrell
073fe18edf
[ossfuzz] Fix parallel builds
...
With `make -j` multiple builds of `standaloneengine.o` happened in
parallel. Fix this by detecting `standaloneengine.o` and moving it to a
depedency.
2020-11-05 10:31:07 -08:00
Yann Collet
ad552101dd
fix minor explicit cast
2020-10-31 01:55:04 -07:00
Yann Collet
664427aa8f
Merge pull request #930 from remittor-pr/fix_msvc
...
Fix: The "inline" specifier do not use for LZ4_wildCopy8 and LZ4_wildCopy32
2020-10-31 01:44:21 -07:00
remittor
0e3933edd4
Replace "static" to "LZ4_FORCE_INLINE" for small functions
...
The "static" specifier does not guarantee that the function will be inlined.
2020-10-07 09:52:40 +03:00
remittor
749bd91a06
Replace define LZ4_FORCE_O2_INLINE_GCC_PPC64LE to LZ4_FORCE_INLINE
...
There is no reason to separate these two definitions!
2020-10-07 09:51:08 +03:00
Yann Collet
644ab86b8c
Merge pull request #928 from remittor-pr/human_redable
...
Made function LZ4HC_encodeSequence a human readable
2020-10-06 10:49:42 -07:00
remittor
c4792cdfa9
Fix: The "inline" specifier do not use for LZ4_wildCopy8 and LZ4_wildCopy32
...
This problem was reproduced on MSVC 2015 (32-bit). Both functions were called using the operator "call".
2020-10-06 17:16:43 +03:00
remittor
c24e979063
[lz4hc] Made function LZ4HC_encodeSequence a human readable
2020-10-03 18:32:34 +03:00
Yann Collet
4b97866333
reduce new test stack usage
...
use heap instead
2020-10-02 18:03:12 -07:00
Yann Collet
389eacdfea
Appveyor: added compilation and runtime fuzzer tests
...
to all Windows compiler targets
2020-10-02 17:41:19 -07:00
Yann Collet
2631002f74
preserver alignment test on Visual Studio x64
...
this it works fine in this environment
(only x86 is suspicious)
2020-10-02 15:51:14 -07:00
Yann Collet
c661adda10
fixed x32 test on Travis
2020-10-02 15:43:46 -07:00
Yann Collet
58c0a549ad
fix cppcheck unused variable warning
2020-10-02 14:10:00 -07:00
Yann Collet
de52a52518
added LZ4_streamHC_t init test
...
which includes an alignment test
2020-10-02 13:23:11 -07:00
Yann Collet
d1414fd552
Merge pull request #925 from lz4/test_null
...
add LZ4F_decompress() tests with (NULL,0) input and output
2020-10-02 08:30:25 -07:00
Yann Collet
056cdd6cc6
define sentinelTest
...
to help scan-build detect the condition
2020-10-01 23:42:42 -07:00
Yann Collet
a88c8fb438
make it possible to select SCANBUILD binary on command line
2020-10-01 23:27:02 -07:00
Yann Collet
1e5ff76b36
add LZ4F_decompress() tests with (NULL,0) input and output
...
fix one (rare & complex) issue discovered by this test
2020-10-01 21:10:08 -07:00
Yann Collet
0aed7314de
Merge pull request #924 from lz4/safixes
...
fix minor static analyzer warnings
2020-10-01 12:53:27 -07:00
Yann Collet
03f006a7ea
make scan-build accept assert()
2020-10-01 10:48:22 -07:00
Yann Collet
1e31f1d25c
fix bad init scenario
2020-09-30 22:51:17 -07:00
Yann Collet
fe74eb2031
added memcpy() related SA warning fixes
...
memcpy() on NULL is UB, even if length is 0.
2020-09-30 21:20:07 -07:00
Yann Collet
d9619f55ef
Merge branch 'safixes' of github.com:lz4/lz4 into safixes
2020-09-30 00:23:47 -07:00
Yann Collet
7d21f761c3
fix conversion warning
2020-09-29 21:53:42 -07:00
Yann Collet
40cc3aa9a2
Merge branch 'dev' into safixes
2020-09-29 17:21:59 -07:00
Yann Collet
ad2d2764c7
fix minor static analyzer warnings
...
detected by scan-build, cppcheck and advanved compilation flags
fix #786
2020-09-29 17:20:52 -07:00
Yann Collet
392809d66e
fix minor static analyzer warnings
...
detected by scan-build and cppcheck
fix #786
2020-09-29 17:09:58 -07:00
Yann Collet
293713a4fa
bump version number
...
to v1.9.3
2020-09-29 14:27:39 -07:00
Yann Collet
78f4fdbb89
Merge pull request #923 from lz4/fix784
...
fix efficiency of LZ4_compress_HC_destSize()
2020-09-28 14:04:56 -07:00
Yann Collet
ab89dda91d
improved last literals run on LZ4_compress_destSize
...
applying new more accurate formula from LZ4_compress_HC_destSize()
also : fix some minor display issue in tests/frametest
2020-09-28 11:39:00 -07:00
Yann Collet
89736e4e27
ensure last match not too close to end
...
must respect MFLIMIT distance from oend
2020-09-27 23:59:56 -07:00