Skip to content

Commit c61b888

Browse files
committed
write_fuzzer: increase compression level
disabling compression had lead to lower code coverage
1 parent 12635f0 commit c61b888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/spng_write_fuzzer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
7171
state.data = NULL;
7272
state.bytes_left = SIZE_MAX;
7373

74-
spng_set_option(ctx, SPNG_IMG_COMPRESSION_LEVEL, 0);
74+
spng_set_option(ctx, SPNG_IMG_COMPRESSION_LEVEL, 1);
7575

7676
if(stream) ret = spng_set_png_stream(ctx, stream_write_fn, &state);
7777
else ret = spng_set_option(ctx, SPNG_ENCODE_TO_BUFFER, 1);

0 commit comments

Comments
 (0)