summaryrefslogtreecommitdiffstats
path: root/ossfuzz
diff options
context:
space:
mode:
authorAlexander Mohr <alexander.m.mohr@mercedes-benz.com>2022-07-05 18:52:50 (GMT)
committerAlexander Mohr <alexander.m.mohr@mercedes-benz.com>2022-07-05 19:14:34 (GMT)
commit0ac3c74de1b6de584c361f3e9485dde35f10c756 (patch)
tree24ad2216f485618fb07a09fd4e1c67bf352dc487 /ossfuzz
parent42eb47d42f041054140b8e08ffc6ba85e9f092f2 (diff)
downloadlz4-0ac3c74de1b6de584c361f3e9485dde35f10c756.zip
lz4-0ac3c74de1b6de584c361f3e9485dde35f10c756.tar.gz
lz4-0ac3c74de1b6de584c361f3e9485dde35f10c756.tar.bz2
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>
Diffstat (limited to 'ossfuzz')
-rw-r--r--ossfuzz/round_trip_frame_uncompressed_fuzzer.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/ossfuzz/round_trip_frame_uncompressed_fuzzer.c b/ossfuzz/round_trip_frame_uncompressed_fuzzer.c
index cf9cbb9..e578052 100644
--- a/ossfuzz/round_trip_frame_uncompressed_fuzzer.c
+++ b/ossfuzz/round_trip_frame_uncompressed_fuzzer.c
@@ -124,13 +124,6 @@ static void compress_round_trip(const uint8_t* data, size_t size,
LZ4F_freeCompressionContext(ctx);
}
-static void compress_linked_block_mode(const uint8_t* data, size_t size) {
- FUZZ_dataProducer_t *producer = FUZZ_dataProducer_create(data, size);
- LZ4F_preferences_t prefs = FUZZ_dataProducer_preferences(producer);
- prefs.frameInfo.blockMode = LZ4F_blockLinked;
- compress_round_trip(data, size, producer, prefs);
-}
-
static void compress_independent_block_mode(const uint8_t* data, size_t size) {
FUZZ_dataProducer_t *producer = FUZZ_dataProducer_create(data, size);
LZ4F_preferences_t prefs = FUZZ_dataProducer_preferences(producer);
@@ -140,7 +133,6 @@ static void compress_independent_block_mode(const uint8_t* data, size_t size) {
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
- compress_linked_block_mode(data, size);
compress_independent_block_mode(data, size);
return 0;
}