Mateusz Majewski [Wed, 16 Dec 2020 06:47:12 +0000 (07:47 +0100)]
Fix compilation on 64-bit architectures
RPM expects the libraries to end up in /usr/lib64 then, but the Makefile
puts them in /usr/lib regardless of the architecture. Thankfully, we can
select the location (which also is used in the pkg-config file).
Change-Id: I87496a783ab602770df5619ca57a3295756c0ae4
(cherry picked from commit
1f1a7d807e1d7661015dfc331567bdaadf7e8112)
Mateusz Majewski [Fri, 11 Dec 2020 08:45:41 +0000 (09:45 +0100)]
Package for Tizen
Signed-off-by: Mateusz Majewski <m.majewski2@samsung.com>
[ Added change-id ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Change-Id: I49d09fc354eb7584722fde98516828de9e9fe161
Yann Collet [Mon, 16 Nov 2020 04:59:35 +0000 (20:59 -0800)]
Merge branch 'dev' into release
Yann Collet [Mon, 16 Nov 2020 03:46:12 +0000 (19:46 -0800)]
update cli entry
Yann Collet [Sun, 15 Nov 2020 23:53:42 +0000 (15:53 -0800)]
Merge pull request #954 from lz4/dev
v1.9.3
Yann Collet [Sun, 15 Nov 2020 09:31:09 +0000 (01:31 -0800)]
update doc
Yann Collet [Sun, 15 Nov 2020 09:23:40 +0000 (01:23 -0800)]
Merge pull request #953 from lz4/vs2005
better MSVC conformance
Yann Collet [Sun, 15 Nov 2020 04:39:23 +0000 (20:39 -0800)]
fix minor win32 warning
Yann Collet [Sun, 15 Nov 2020 01:25:31 +0000 (17:25 -0800)]
fixed minor Visual warning
doesn't happen on my environment, though it's a different version of Visual Studio
Yann Collet [Sun, 15 Nov 2020 00:49:43 +0000 (16:49 -0800)]
Merge pull request #952 from lz4/lz4io
Fix --sparse mode
Yann Collet [Sun, 15 Nov 2020 00:24:36 +0000 (16:24 -0800)]
better visual conformance
only include <intrin.h> on vs2005+ (#947)
remove some useless #pragma
fix a few minor Visual warnings
Yann Collet [Sat, 14 Nov 2020 22:26:48 +0000 (14:26 -0800)]
Merge branch 'dev' of github.com:Cyan4973/lz4 into dev
Yann Collet [Sat, 14 Nov 2020 22:26:08 +0000 (14:26 -0800)]
restrict BitScanForward() to VS2005+
suggested by @aqrit in #947
Yann Collet [Sat, 14 Nov 2020 20:44:18 +0000 (12:44 -0800)]
fix minor parse warning
Yann Collet [Sat, 14 Nov 2020 20:40:17 +0000 (12:40 -0800)]
all usages of prefs within lz4io are const
Yann Collet [Sat, 14 Nov 2020 19:13:08 +0000 (11:13 -0800)]
LZ4IO_openDstFile() doesn't need pref mutability
Yann Collet [Sat, 14 Nov 2020 18:52:19 +0000 (10:52 -0800)]
fixed force --sparse mode
Yann Collet [Sat, 14 Nov 2020 16:18:20 +0000 (08:18 -0800)]
Merge pull request #951 from lz4/lz4io
minor refactor of lz4io
Yann Collet [Sat, 14 Nov 2020 06:20:49 +0000 (22:20 -0800)]
dictionary functions don't need prefs mutability
Yann Collet [Sat, 14 Nov 2020 06:16:39 +0000 (22:16 -0800)]
LZ4IO_createDict() doesn't need prefs
Yann Collet [Sat, 14 Nov 2020 05:51:08 +0000 (21:51 -0800)]
LZ4IO_decompressSrcFile() doesn't need mutable prefs
Yann Collet [Sat, 14 Nov 2020 05:49:43 +0000 (21:49 -0800)]
selectDecoder() doesn't need mutable prefs
Yann Collet [Sat, 14 Nov 2020 05:47:17 +0000 (21:47 -0800)]
LZ4IO_passThrough() doesn't need prefs
Yann Collet [Sat, 14 Nov 2020 04:57:26 +0000 (20:57 -0800)]
LZ4IO_decompressLZ4F() doesn't need mutable prefs
Yann Collet [Sat, 14 Nov 2020 04:51:49 +0000 (20:51 -0800)]
LZ4IO_decodeLegacyStream() doesn't need mutable prefs
Yann Collet [Sat, 14 Nov 2020 00:44:39 +0000 (16:44 -0800)]
LZ4IO_fwriteSparse doesn't need writable prefs
Yann Collet [Fri, 13 Nov 2020 19:55:33 +0000 (11:55 -0800)]
minor refactor
mostly on the compression code path
Yann Collet [Fri, 13 Nov 2020 18:53:59 +0000 (10:53 -0800)]
minor refactor of lz4io
for readability.
Mostly around --list capability
Yann Collet [Fri, 13 Nov 2020 16:44:11 +0000 (08:44 -0800)]
Merge pull request #950 from lz4/appvtest
appveyor artifact generation
Yann Collet [Thu, 12 Nov 2020 01:12:35 +0000 (17:12 -0800)]
appveyor artifact generation
fix presence of the dynamic library in produced package
Yann Collet [Wed, 11 Nov 2020 23:48:35 +0000 (15:48 -0800)]
Merge pull request #949 from lz4/cmakedll
fix cmake build of shared dll with visual
Yann Collet [Wed, 11 Nov 2020 23:43:17 +0000 (15:43 -0800)]
Merge pull request #946 from lz4/customMem
proposal for LZ4_USER_MEMORY_FUNCTIONS
Yann Collet [Wed, 11 Nov 2020 08:32:49 +0000 (00:32 -0800)]
fix cmake build of shared dll with visual
inspired from #891
Yann Collet [Tue, 10 Nov 2020 05:56:49 +0000 (21:56 -0800)]
updated NEWS for v1.9.3
Yann Collet [Tue, 10 Nov 2020 05:23:56 +0000 (21:23 -0800)]
minor : lz4frame include stdlib only if needed
Yann Collet [Mon, 9 Nov 2020 18:58:31 +0000 (10:58 -0800)]
proper fullbench's LZ4_calloc()
Yann Collet [Mon, 9 Nov 2020 16:44:26 +0000 (08:44 -0800)]
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.
Yann Collet [Mon, 9 Nov 2020 08:29:52 +0000 (00:29 -0800)]
fix fullbench's LZ4_free()
Yann Collet [Mon, 9 Nov 2020 07:36:24 +0000 (23:36 -0800)]
fix travis test
Yann Collet [Mon, 9 Nov 2020 07:26:19 +0000 (23:26 -0800)]
Merge branch 'dev' into customMem
Yann Collet [Mon, 9 Nov 2020 05:17:32 +0000 (21:17 -0800)]
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
Yann Collet [Mon, 9 Nov 2020 04:48:20 +0000 (20:48 -0800)]
Merge pull request #944 from lz4/fix874
fix #874
Yann Collet [Mon, 9 Nov 2020 04:47:55 +0000 (20:47 -0800)]
Merge pull request #943 from lz4/fullbench_dec
Added decompression tests in fullbench
Yann Collet [Mon, 9 Nov 2020 04:47:19 +0000 (20:47 -0800)]
Merge pull request #945 from lz4/fix926
fixed remaining ubsan warnings
Yann Collet [Mon, 9 Nov 2020 03:48:47 +0000 (19:48 -0800)]
attempt at silencing cppcheck
Yann Collet [Mon, 9 Nov 2020 02:08:43 +0000 (18:08 -0800)]
fixed remaining ubsan warnings
Yann Collet [Sun, 8 Nov 2020 21:21:58 +0000 (13:21 -0800)]
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.
Yann Collet [Wed, 4 Dec 2019 16:57:12 +0000 (08:57 -0800)]
fullbench: added LZ4F_decompress_noHint()
Yann Collet [Wed, 4 Dec 2019 16:49:06 +0000 (08:49 -0800)]
added test for LZ4_decompress_safe_withPrefix64k()
Yann Collet [Sun, 8 Nov 2020 20:54:59 +0000 (12:54 -0800)]
update obsolete section documentation
and update manuals.
fix #712
Yann Collet [Sun, 8 Nov 2020 05:05:27 +0000 (21:05 -0800)]
Merge pull request #942 from lz4/fix926
fix #926
Yann Collet [Sun, 8 Nov 2020 03:38:07 +0000 (19:38 -0800)]
fix minor UBs
- check alignment before casting a pointer
- saveDict : don't memmove() on NULL dst
Yann Collet [Sun, 8 Nov 2020 02:24:02 +0000 (18:24 -0800)]
added similar tests for LZ4_saveDict()
fast (non-HC) variant
Yann Collet [Sun, 8 Nov 2020 02:12:26 +0000 (18:12 -0800)]
fix #926
fix incorrect behavior of LZ4_saveDictHC()
when invoked right after initialization.
Yann Collet [Sun, 8 Nov 2020 01:18:04 +0000 (17:18 -0800)]
Merge pull request #941 from lz4/revertinline
Revert "Replace "static" to "LZ4_FORCE_INLINE" for small functions"
Yann Collet [Sun, 8 Nov 2020 00:12:41 +0000 (16:12 -0800)]
Merge pull request #940 from lz4/fix935
fix #935
Yann Collet [Sat, 7 Nov 2020 19:02:30 +0000 (11:02 -0800)]
Revert "Replace "static" to "LZ4_FORCE_INLINE" for small functions"
This reverts commit
0e3933edd435c54cc2e21e38f5d4ba7bf644a24e.
Yann Collet [Sat, 7 Nov 2020 18:06:52 +0000 (10:06 -0800)]
fix #935
minor: identical declaration and prototypes of `LZ4HC_compress_optimal()`
also :
very minor optimization of `LZ4_memcpy_using_offset()`
Yann Collet [Sat, 7 Nov 2020 17:37:27 +0000 (09:37 -0800)]
Merge pull request #939 from lz4/fix927
LZ4F_decompress requires a valid dctx state
Yann Collet [Sat, 7 Nov 2020 04:46:35 +0000 (20:46 -0800)]
LZ4F_decompress requires a valid dctx state
This is now explicitly documented and asserted.
fix #927
Yann Collet [Sat, 7 Nov 2020 04:27:42 +0000 (20:27 -0800)]
Merge pull request #936 from lz4/alignTest
More alignment tests
Yann Collet [Sat, 7 Nov 2020 02:26:13 +0000 (18:26 -0800)]
static state size
for better inter-version compatibility
Yann Collet [Sat, 7 Nov 2020 00:43:14 +0000 (16:43 -0800)]
re-enable alignment test on all targets
Yann Collet [Sat, 7 Nov 2020 00:15:51 +0000 (16:15 -0800)]
unified internal state declaration
align on `void*` instead : there is no `long long` inside the structure
Yann Collet [Fri, 6 Nov 2020 22:48:43 +0000 (14:48 -0800)]
document LZ4_ALIGN_TEST
Yann Collet [Fri, 6 Nov 2020 22:46:48 +0000 (14:46 -0800)]
unified alignment test
across lz4.c and lz4hc.c
Yann Collet [Fri, 6 Nov 2020 18:34:05 +0000 (10:34 -0800)]
Merge pull request #938 from terrelln/fuzzer-fix
[ossfuzz] Fix parallel builds
Nick Terrell [Thu, 5 Nov 2020 18:27:43 +0000 (10:27 -0800)]
[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.
Yann Collet [Sat, 31 Oct 2020 08:55:04 +0000 (01:55 -0700)]
fix minor explicit cast
Yann Collet [Sat, 31 Oct 2020 08:44:21 +0000 (01:44 -0700)]
Merge pull request #930 from remittor-pr/fix_msvc
Fix: The "inline" specifier do not use for LZ4_wildCopy8 and LZ4_wildCopy32
remittor [Wed, 7 Oct 2020 06:52:40 +0000 (09:52 +0300)]
Replace "static" to "LZ4_FORCE_INLINE" for small functions
The "static" specifier does not guarantee that the function will be inlined.
remittor [Wed, 7 Oct 2020 06:51:08 +0000 (09:51 +0300)]
Replace define LZ4_FORCE_O2_INLINE_GCC_PPC64LE to LZ4_FORCE_INLINE
There is no reason to separate these two definitions!
Yann Collet [Tue, 6 Oct 2020 17:49:42 +0000 (10:49 -0700)]
Merge pull request #928 from remittor-pr/human_redable
Made function LZ4HC_encodeSequence a human readable
remittor [Tue, 6 Oct 2020 14:16:43 +0000 (17:16 +0300)]
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".
remittor [Sat, 3 Oct 2020 15:28:24 +0000 (18:28 +0300)]
[lz4hc] Made function LZ4HC_encodeSequence a human readable
Yann Collet [Sat, 3 Oct 2020 01:02:41 +0000 (18:02 -0700)]
reduce new test stack usage
use heap instead
Yann Collet [Fri, 2 Oct 2020 23:37:34 +0000 (16:37 -0700)]
Appveyor: added compilation and runtime fuzzer tests
to all Windows compiler targets
Yann Collet [Fri, 2 Oct 2020 22:51:14 +0000 (15:51 -0700)]
preserver alignment test on Visual Studio x64
this it works fine in this environment
(only x86 is suspicious)
Yann Collet [Fri, 2 Oct 2020 22:43:46 +0000 (15:43 -0700)]
fixed x32 test on Travis
Yann Collet [Fri, 2 Oct 2020 21:10:00 +0000 (14:10 -0700)]
fix cppcheck unused variable warning
Yann Collet [Fri, 2 Oct 2020 20:06:51 +0000 (13:06 -0700)]
added LZ4_streamHC_t init test
which includes an alignment test
Yann Collet [Fri, 2 Oct 2020 15:30:25 +0000 (08:30 -0700)]
Merge pull request #925 from lz4/test_null
add LZ4F_decompress() tests with (NULL,0) input and output
Yann Collet [Fri, 2 Oct 2020 06:42:42 +0000 (23:42 -0700)]
define sentinelTest
to help scan-build detect the condition
Yann Collet [Fri, 2 Oct 2020 06:27:02 +0000 (23:27 -0700)]
make it possible to select SCANBUILD binary on command line
Yann Collet [Fri, 2 Oct 2020 02:07:56 +0000 (19:07 -0700)]
add LZ4F_decompress() tests with (NULL,0) input and output
fix one (rare & complex) issue discovered by this test
Yann Collet [Thu, 1 Oct 2020 19:53:27 +0000 (12:53 -0700)]
Merge pull request #924 from lz4/safixes
fix minor static analyzer warnings
Yann Collet [Thu, 1 Oct 2020 17:48:22 +0000 (10:48 -0700)]
make scan-build accept assert()
Yann Collet [Thu, 1 Oct 2020 05:51:17 +0000 (22:51 -0700)]
fix bad init scenario
Yann Collet [Thu, 1 Oct 2020 00:39:42 +0000 (17:39 -0700)]
added memcpy() related SA warning fixes
memcpy() on NULL is UB, even if length is 0.
Yann Collet [Wed, 30 Sep 2020 07:23:47 +0000 (00:23 -0700)]
Merge branch 'safixes' of github.com:lz4/lz4 into safixes
Yann Collet [Wed, 30 Sep 2020 04:53:42 +0000 (21:53 -0700)]
fix conversion warning
Yann Collet [Wed, 30 Sep 2020 00:21:59 +0000 (17:21 -0700)]
Merge branch 'dev' into safixes
Yann Collet [Tue, 29 Sep 2020 05:37:20 +0000 (22:37 -0700)]
fix minor static analyzer warnings
detected by scan-build, cppcheck and advanved compilation flags
fix #786
Yann Collet [Tue, 29 Sep 2020 05:37:20 +0000 (22:37 -0700)]
fix minor static analyzer warnings
detected by scan-build and cppcheck
fix #786
Yann Collet [Tue, 29 Sep 2020 21:27:39 +0000 (14:27 -0700)]
bump version number
to v1.9.3
Yann Collet [Mon, 28 Sep 2020 21:04:56 +0000 (14:04 -0700)]
Merge pull request #923 from lz4/fix784
fix efficiency of LZ4_compress_HC_destSize()
Yann Collet [Mon, 28 Sep 2020 18:39:00 +0000 (11:39 -0700)]
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
Yann Collet [Mon, 28 Sep 2020 06:59:56 +0000 (23:59 -0700)]
ensure last match not too close to end
must respect MFLIMIT distance from oend
Yann Collet [Mon, 28 Sep 2020 05:47:05 +0000 (22:47 -0700)]
fix incorrect counting
after truncation of last sequence
Yann Collet [Mon, 28 Sep 2020 04:09:06 +0000 (21:09 -0700)]
Merge pull request #921 from lz4/doubleNull
fix compressing into NULL