Skip to content

Commit 12635f0

Browse files
committed
read_fuzzer: keep unknown chunks
1 parent d981609 commit 12635f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/spng_read_fuzzer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
9292

9393
spng_set_crc_action(ctx, SPNG_CRC_USE, discard ? SPNG_CRC_DISCARD : SPNG_CRC_USE);
9494

95+
spng_set_option(ctx, SPNG_KEEP_UNKNOWN_CHUNKS, 1);
96+
9597
size_t out_size;
9698
if(spng_decoded_image_size(ctx, fmt, &out_size)) goto err;
9799

0 commit comments

Comments
 (0)