Commit Graph

2868 Commits

Author SHA1 Message Date
Yann Collet
d174f975d2 clarify static sizes of states for static allocation 2022-07-12 21:28:12 +02:00
Yann Collet
91802083b3
Merge pull request #1108 from lz4/abiTests
ABI compatibility tests
2022-07-12 12:18:15 -07:00
Yann Collet
d577589c31 added abiTests to github 2022-07-12 19:41:56 +02:00
Yann Collet
d645753919 generalize across all 3 ABI architectures 2022-07-12 10:37:46 -07:00
Yann Collet
3e2426b198 write liblz4 dynamic library version
requires liblz4 >= v1.7.5
2022-07-12 09:40:45 -07:00
Yann Collet
aab32f454e first ABI compat tests
only use current march & default compiler
2022-07-12 08:29:06 -07:00
Yann Collet
510dc63706
Merge pull request #1104 from jonrumsey/os400-build-fix
Change definitions of LZ4_xxxSIZE defines for OS400
2022-07-11 06:31:58 -07:00
Yann Collet
6f23d0d081
Merge pull request #1105 from lz4/makeblock2
minor refactor : simplify LZ4F_makeBlock
2022-07-11 05:02:07 -07:00
Yann Collet
9de5b571d7 minor refactor : simplify LZ4F_makeBlock
one less argument
2022-07-11 03:46:15 -07:00
jonrumsey
b4f508608f Change definitions of LZ4_STREAMSIZE, LZ4_STREAMDECODESIZE and LZ4_STREAMHCSIZE to factor in OS400 pointer length and structure alignment rules
Update the length values on platforms where pointers are 16-bytes, factor in implicit compiler padding to ensure proper alignment of members and overall structure lengths
2022-07-11 11:28:32 +01:00
Yann Collet
33b20f24b4
Merge pull request #1103 from lz4/fix_fuzzer_leak
fixed direct-leak in round_trip_fuzzer.c
2022-07-11 02:53:38 -07:00
Yann Collet
34f25c3c1d fixed direct-leak in round_trip_fuzzer.c
reported by oss-fuzz
2022-07-10 15:32:42 -07:00
Yann Collet
0b0e3330bc minor frame format clarification
no need to specify that a decoder can "ignore the checksum".
2022-07-10 15:25:43 -07:00
Yann Collet
7e8b67d0df
Merge pull request #1102 from lz4/ossfuzz_ghtest
add ossfuzz tests to Github Actions
2022-07-10 14:44:58 -07:00
Yann Collet
58fd9d08c8 add ossfuzz tests to Github Actions 2022-07-10 02:02:12 -07:00
Yann Collet
ab9e29ef1f
Merge pull request #1100 from yoniko/fuzzer-fixes
Fix recent fuzzers issues and false positives
2022-07-09 16:43:59 -07:00
Yonatan Komornik
910ec80d28 - Fixed incorrect free in round_trip_fuzzer.c (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48884)
- Fixed `round_trip_frame_uncompressed_fuzzer.c` to not use uninitialized memory (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48910)
2022-07-09 14:08:06 -07:00
Yann Collet
9d20cd519a
Merge pull request #1099 from lz4/pr1094_frametest
Add a fuzzer test for LZ4F_uncompressedUpdate() within frametest
2022-07-05 16:31:54 -07:00
Yann Collet
d3d3fad70c ignore ossfuzz artifact 2022-07-05 15:39:15 -07:00
Yann Collet
4da5c4dd30
Merge pull request #1094 from alexmohr/add-uncompressed-api
frame-api: add function to insert uncomressed data
2022-07-05 15:07:36 -07:00
Yann Collet
6e242d1915 update frametest for new condition for uncompressedUpdate 2022-07-05 14:08:36 -07:00
Yann Collet
6349795258 Merge branch 'pr1094' into pr1094_frametest 2022-07-05 14:00:45 -07:00
Alexander Mohr
0ac3c74de1
review: fix findings
* replace assert with test for LZ4F_uncompressedUpdate
* update documentation to incldue correct docstring
* remove unecessary entry point
* remove compress_linked_block_mode from fuzzing test

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
2022-07-05 21:14:34 +02:00
Alexander Mohr
42eb47d42f
uncompressed-api: allow uncompressed_update only for independent blocks
Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
2022-07-05 11:56:23 +02:00
Yann Collet
f745a01cfd clarify yet another time what dual-license means 2022-07-04 16:36:19 -07:00
Yann Collet
0af5edc873 updated dll README 2022-07-04 15:58:47 -07:00
Yann Collet
abe63b490b Merge branch 'dev' of github.com:Cyan4973/lz4 into dev 2022-07-04 14:29:57 -07:00
Yann Collet
6fb713358b silence a useless MSVC warning 2022-07-04 14:29:35 -07:00
Alexander Mohr
e595150baf
lz4frame: correct start and size after flush
when the block mode changes a flush is executed, to prevent
mixing compressed and uncompressed data.
Prior to this commit dstStart, dstPtr, dstCapacity
where not updated to include the offset from bytesWritten.
For inputs > blockSize this meant the flushed data was
overwritten.

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
2022-07-04 08:51:37 +02:00
Yann Collet
63df16db1b
Merge pull request #1088 from turrisxyz/Pinned-Dependencies-GitHub
chore: Set permissions for GitHub actions
2022-07-01 14:54:41 -07:00
Yann Collet
5392531e87 added fuzzer test for LZ4F_uncompressedUpdate in frametest 2022-07-01 14:53:16 -07:00
Yann Collet
c63801d03d ignore ossfuzz artifacts 2022-07-01 10:36:22 -07:00
Yann Collet
ea3eef071f
Merge pull request #1098 from lz4/blockDeviceTest
Block device compression
2022-07-01 09:40:33 -07:00
Yann Collet
49e63cd522 fixed minor leak 2022-07-01 02:55:47 -07:00
Yann Collet
149644df49 fixed -tm
which was broken up to now.
2022-07-01 02:21:44 -07:00
Yann Collet
fcbf585598 minor refactor : EXM_THROW -> END_PROCESS 2022-07-01 02:07:43 -07:00
Yann Collet
e23700d263 fix #1086
just remove the specific code of #704, it's not necessary and produces side effects.
2022-07-01 01:45:12 -07:00
Yann Collet
35565bf0dc refactored logic to test special file names 2022-07-01 01:36:32 -07:00
Yann Collet
24b50935f9 fail on requesting to process 3+ file names in legacy mode
warning only if -f is selected.
2022-06-30 21:53:29 -07:00
Yann Collet
b2f6147194 test lz4 compression on a block device
block device created as part of the test.
Requires sudo rights.
2022-06-30 19:35:52 -07:00
Alexander Mohr
5065080664
ossfuzz: extend fuzzing test to include linked blocks
fuzzing test now tests linked and independent blocks

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
2022-06-13 07:46:53 +02:00
Yann Collet
4ebe313e00
Merge pull request #1093 from yawqi/partial-with-dict
API: add `LZ4_decompress_safe_partial_usingDict` to support partial decompression with dict
2022-06-12 13:52:02 -07:00
Alexander Mohr
af447b22c8 meson: fix meson build
add static dependency to examples
2022-06-12 00:41:55 +02:00
Alexander Mohr
9a42a9db94 dict-size: make lz4 context const
change the context to const to make
clear that the context is not modified
2022-06-11 23:58:03 +02:00
Alexander Mohr
3c57d2f185 lz4frame: fix different linkage error
Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
2022-06-11 22:47:50 +02:00
Alexander Mohr
1738b50443 fuzz-test: add fuzz test for uncompressed api
add a fuzzing test for uncompressed frame api

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
2022-06-11 22:47:44 +02:00
Alexander Mohr
5c7382798e
review: Fix review findings
This commit fixes the review findings

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
2022-06-10 06:37:57 +00:00
Alexander Mohr
62f6cef564
review: Fix review findings
This commit fixes the review findings

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
2022-06-10 06:00:38 +00:00
Alexander Mohr
4aeb5020c3
frame-api: add method to insert uncomressed data
new method `uncompressed_update` allows to insert blocks without
compression into the lz4 stream.
The usage is documented in the frameCompress example

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
2022-06-09 17:08:01 +02:00
Qi Wang
582f5fe534 ossfuzz: add fuzz for LZ4_decompress_safe_partial_usingDict
Signed-off-by: Qi Wang <wangqi@linux.alibaba.com>
2022-06-07 17:13:01 +08:00