122 Commits
Author SHA1 Message Date
Nigel Tao 43ca567205 fuzz: check "short read" and io_reader.is_closed
Updates #96
2023-02-01 22:32:36 +11:00
Nigel Tao b8d44be783 Touch fuzz/c/std/bzip2_fuzzer.c again
This undoes commit c1283e49 now that issue #79 was closed.

Updates #79
2022-06-24 13:32:04 +10:00
Nigel Tao c1283e4989 Touch fuzz/c/std/bzip2_fuzzer.c
Updates #79
2022-06-20 19:13:40 +10:00
Nigel Tao 886e7f3e8f Simplify fuzzers' io_buffer construction 2022-06-08 17:08:49 +10:00
Nigel Tao fbc686f9b7 Add memrandomize to fuzz/c/fuzzlib 2022-06-08 17:06:59 +10:00
Nigel Tao cda8b1950a Add fuzz/c/std/bzip2_fuzzer.c 2022-05-18 00:15:40 +10:00
Nigel Tao 48e457204f Add "./build-{example,fuzz}.sh" instructions 2022-01-19 14:58:40 +11:00
Nigel Tao 6d35660651 Add fuzz/c/std/tga_fuzzer.c
Updates #67
2022-01-15 14:53:41 +11:00
Nigel Tao 010e0a69f4 Fix fuzz seed_corpora for test filename rename
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41167
2021-11-20 17:58:08 +11:00
Nigel Tao d5075c7e94 Push "int i" into "for (int i = etc; etc; etc)" 2021-11-02 14:07:58 +11:00
Nigel Tao d259f7a579 Fix json_fuzzer for wuffs_aux::FooArgBar types 2021-10-18 00:46:50 +11:00
Nigel Tao 1a94a6f1b3 Choose fuzzer's static-ness on program vs library
Some sanitizers don't work well with static functions.

Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=39767
2021-10-10 10:46:05 +11:00
Nigel Tao 55784030e4 Have fuzzers use WUFFS_CONFIG__STATIC_FUNCTIONS
Compile time:
$ time ./build-fuzz.sh
Before: user 0m36.656s
After:  user 0m18.534s
2021-10-07 14:26:08 +11:00
Nigel Tao f7b1b87c70 Fix "-Wnarrowing -m32" warning for some fuzzers 2021-08-14 12:49:04 +10:00
Nigel Tao 13f2e44aca Have JSON fuzzer segfault on internal errors 2021-08-13 17:45:23 +10:00
Nigel Tao 128d0386bd Fuzz wuffs_aux::DecodeJson 2021-08-12 23:07:26 +10:00
Nigel Tao d8796aa6d9 Add wuffs_base__uxx__rotate_etc functions 2021-06-28 09:59:32 +10:00
Nigel Tao ec32eb3eb7 Add fuzz/c/std/gif_fuzzer.c quirks 2021-06-18 22:37:29 +10:00
Nigel Tao 13f9ecec68 Have pixel_swizzler_fuzzer use no-r/w guard pages 2021-03-22 23:20:30 +11:00
Nigel Tao 41bfcabd3a Add fuzz/c/std/pixel_swizzler_fuzzer.c 2021-03-22 14:02:39 +11:00
Nigel Tao 3e5afc3e52 Remove png_fuzzer "smoke alarm test"
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31984
2021-03-13 13:39:35 +11:00
Nigel Tao 49c5692c32 Add png_fuzzer "smoke alarm test" 2021-03-11 11:05:20 +11:00
Nigel Tao 2f78804e62 Use more inclusive language 2021-01-23 19:50:47 +11:00
Nigel Tao 0de64ee8b7 Use WUFFS_BASE__QUIRK_IGNORE_CHECKSUM 2021-01-21 22:49:57 +11:00
Nigel Tao 1ff74749f0 Add fuzz/c/std/png_fuzzer.c 2020-12-28 15:58:05 +11:00
Nigel Tao 1c8f9280fd Add fuzz/c/std/bmp_fuzzer.c 2020-12-15 22:25:21 +11:00
Nigel Tao 4346028a23 Factor out fuzz/c/fuzzlib/fuzzlib_image_decoder.c 2020-12-15 22:21:55 +11:00
Nigel Tao bb7390261a Have gif_fuzzer sometimes use a BGRA_PREMUL dst 2020-12-15 22:07:31 +11:00
Nigel Tao cd4cbc9102 Tweak JSON trailing comment/new-line quirks 2020-09-22 23:03:49 +10:00
Nigel Tao fa50f4de67 Add json QUIRK_ALLOW_TRAILING_COMMENT 2020-09-21 11:24:22 +10:00
Nigel Tao 6c13877688 Drop WUFFS_JSON__QUIRK_ALLOW_BACKSLASH_X_AS_BYTES
We can always add it back later if there's demand for it.
2020-08-30 16:15:35 +10:00
Nigel Tao d690ce7dce Fix cbor_fuzzer for extended-token CBOR tags
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24946
2020-08-16 23:57:21 +10:00
Nigel Tao c7b90256b3 Bump fuzzlib hash size from 32 to 64
Also have json_fuzzer choose at most one of the BACKSLASH_X quirks.
2020-08-10 22:56:47 +10:00
Nigel Tao 28ef6a7862 Add fuzz/c/std/cbor_fuzzer.c 2020-08-10 22:29:08 +10:00
Nigel Tao 9132dd6e2e Fix json_fuzzer for QUIRK_ALLOW_BACKSLASH_X rename 2020-08-06 23:59:29 +10:00
Nigel Tao 702c7b299f Let wuffs_base__utf_8__etc take ptr-to-const-u8 2020-07-22 15:42:54 +10:00
Nigel Tao c510bc0c91 Roll forward 6a85e9a6
6a85e9a6a9 rolled back
a4527c359a "Update seed_corpora.txt".

The oss-fuzz build should be fixed by:
https://github.com/google/oss-fuzz/pull/3763
2020-05-06 14:22:51 +10:00
Nigel Tao 6a85e9a6a9 Roll back a4527c35
a4527c359a is "Update seed_corpora.txt".
This broke the oss-fuzz build:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22035
2020-05-06 10:42:56 +10:00
Muhammad Aldo Firmansyah a4527c359a Update seed_corpora.txt
Add more json corpus from simdjson_fuzz repo
2020-05-01 11:05:32 +07:00
Nigel Tao 496e88b6c5 Remove wuffs_base__token__link_prev 2020-04-09 22:11:08 +10:00
Nigel Tao 2ef3999d6d Remove use of wuffs_base__token__link_prev 2020-04-09 17:24:39 +10:00
Nigel Tao 462f86675d Add an "extended token" concept 2020-04-02 11:20:45 +11:00
Nigel Tao f909c69deb Have fuzz/* global variable names start with g_ 2020-03-26 14:49:43 +11:00
Nigel Tao f3146c2ea9 Add base.token_decoder.workbuf_len 2020-03-26 08:47:42 +11:00
Nigel Tao 3bfed6d812 Rename std/json quirk_replace_invalid_utf_8 2020-03-24 17:44:47 +11:00
Nigel Tao 5695385055 Add fuzz/c/std/json_fuzzer.c quirks 2020-03-24 14:46:05 +11:00
Nigel Tao fdac24a425 Rename FOO_BUFFER_SIZE to FOO_BUFFER_ARRAY_SIZE 2020-03-06 21:53:08 +11:00
Nigel Tao 6892095998 Have C programs handle flags consistently 2020-03-03 11:25:18 +11:00
Nigel Tao b10460f643 Add a fuzz/c --color flag 2020-03-01 14:09:40 +11:00
Nigel Tao 3ab7640bab Add a fuzz_simple implementation to json_fuzzer 2020-03-01 13:49:50 +11:00