mirror of
https://github.com/randy408/libspng
synced 2025-03-28 21:13:20 +00:00
write_fuzzer: increase compression level
disabling compression had lead to lower code coverage
This commit is contained in:
parent
12635f0de2
commit
c61b888cb9
@ -71,7 +71,7 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
||||
state.data = NULL;
|
||||
state.bytes_left = SIZE_MAX;
|
||||
|
||||
spng_set_option(ctx, SPNG_IMG_COMPRESSION_LEVEL, 0);
|
||||
spng_set_option(ctx, SPNG_IMG_COMPRESSION_LEVEL, 1);
|
||||
|
||||
if(stream) ret = spng_set_png_stream(ctx, stream_write_fn, &state);
|
||||
else ret = spng_set_option(ctx, SPNG_ENCODE_TO_BUFFER, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user