Commit Graph

2503 Commits

Author SHA1 Message Date
Yann Collet
be13653ad0 fix minor parse warning 2020-11-14 12:44:18 -08:00
Yann Collet
36eadb205a all usages of prefs within lz4io are const 2020-11-14 12:40:17 -08:00
Yann Collet
7315c6e7a0 LZ4IO_openDstFile() doesn't need pref mutability 2020-11-14 11:13:08 -08:00
Yann Collet
849ebae524 fixed force --sparse mode 2020-11-14 10:52:19 -08:00
Yann Collet
5fa6417b2e dictionary functions don't need prefs mutability 2020-11-13 22:20:49 -08:00
Yann Collet
772a312b00 LZ4IO_createDict() doesn't need prefs 2020-11-13 22:16:39 -08:00
Yann Collet
8af38013e0 LZ4IO_decompressSrcFile() doesn't need mutable prefs 2020-11-13 21:51:08 -08:00
Yann Collet
2b3445a269 selectDecoder() doesn't need mutable prefs 2020-11-13 21:49:43 -08:00
Yann Collet
8d37662e48 LZ4IO_passThrough() doesn't need prefs 2020-11-13 21:47:17 -08:00
Yann Collet
c8c3f8e62e LZ4IO_decompressLZ4F() doesn't need mutable prefs 2020-11-13 20:57:26 -08:00
Yann Collet
a203cb2a6e LZ4IO_decodeLegacyStream() doesn't need mutable prefs 2020-11-13 20:51:49 -08:00
Yann Collet
f81f3a254e LZ4IO_fwriteSparse doesn't need writable prefs 2020-11-13 16:44:39 -08:00
Yann Collet
22729ecb8b minor refactor
mostly on the compression code path
2020-11-13 11:55:33 -08:00
Yann Collet
b7c6fc9f61 minor refactor of lz4io
for readability.
Mostly around --list capability
2020-11-13 10:57:40 -08:00
Yann Collet
80751571ae
Merge pull request #950 from lz4/appvtest
appveyor artifact generation
2020-11-13 08:44:11 -08:00
Yann Collet
1921a05993 appveyor artifact generation
fix presence of the dynamic library in produced package
2020-11-13 02:20:05 -08:00
Yann Collet
3771943c7e
Merge pull request #949 from lz4/cmakedll
fix cmake build of shared dll with visual
2020-11-11 15:48:35 -08:00
Yann Collet
9061a0a935
Merge pull request #946 from lz4/customMem
proposal for LZ4_USER_MEMORY_FUNCTIONS
2020-11-11 15:43:17 -08:00
Yann Collet
d2a1f3b239 fix cmake build of shared dll with visual
inspired from #891
2020-11-11 00:32:49 -08:00
Yann Collet
f9631e44a8 updated NEWS for v1.9.3 2020-11-09 21:56:49 -08:00
Yann Collet
86f5e9d0f4 minor : lz4frame include stdlib only if needed 2020-11-09 21:23:56 -08:00
Yann Collet
2c4af01e19 proper fullbench's LZ4_calloc() 2020-11-09 10:58:31 -08:00
Yann Collet
a296839802 changed LZ4_calloc() to a 2-arguments signature
to remain similar to stdlib's calloc().

Updated test to use c++ compiler for stricter signature check.
2020-11-09 08:44:26 -08:00
Yann Collet
adc46ea4c1 fix fullbench's LZ4_free() 2020-11-09 00:29:52 -08:00
Yann Collet
243ea5647e fix travis test 2020-11-08 23:36:24 -08:00
Yann Collet
44b13db532 Merge branch 'dev' into customMem 2020-11-08 23:26:19 -08:00
Yann Collet
52646e8d75 first proposal for LZ4_USER_MEMORY_FUNCTIONS
makes it possible to replace at link time
malloc, calloc and free
by user-provided functions
which must be named LZ4_malloc(), LZ4_calloc() and LZ4_free().

answer #937
2020-11-08 21:17:32 -08:00
Yann Collet
9cf3f106a8
Merge pull request #944 from lz4/fix874
fix #874
2020-11-08 20:48:20 -08:00
Yann Collet
ba021f3fa2
Merge pull request #943 from lz4/fullbench_dec
Added decompression tests in fullbench
2020-11-08 20:47:55 -08:00
Yann Collet
b8cd01183f
Merge pull request #945 from lz4/fix926
fixed remaining ubsan warnings
2020-11-08 20:47:19 -08:00
Yann Collet
c76564b944 attempt at silencing cppcheck 2020-11-08 19:48:47 -08:00
Yann Collet
2a2b10f192 fixed remaining ubsan warnings 2020-11-08 18:08:43 -08:00
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
38b77ece91 fullbench: added LZ4F_decompress_noHint() 2020-11-08 13:13:30 -08:00
Yann Collet
af58d2369c added test for LZ4_decompress_safe_withPrefix64k() 2020-11-08 13:12:27 -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