Use WUFFS_BASE__QUIRK_IGNORE_CHECKSUM

This commit is contained in:
Nigel Tao committed 2021-01-21 22:49:57 +11:00
1 parent b2fe296a43
commit 0de64ee8b7
7 files changed
+47 -3

No files matched your search

+2 -1
View File
@@ -87,7 +87,8 @@ fuzz(wuffs_base__io_buffer* src, uint64_t hash) {
// Ignore the checksum for 99.99%-ish of all input. When fuzzers generate
// random input, the checkum is very unlikely to match. Still, it's useful to
// verify that checksumming does not lead to e.g. buffer overflows.
wuffs_zlib__decoder__set_ignore_checksum(&dec, hash & 0xFFFE);
wuffs_zlib__decoder__set_quirk_enabled(
&dec, WUFFS_BASE__QUIRK_IGNORE_CHECKSUM, hash & 0xFFFE);
uint8_t dst_buffer[DST_BUFFER_ARRAY_SIZE];
wuffs_base__io_buffer dst = ((wuffs_base__io_buffer){