27 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 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 d5075c7e94 Push "int i" into "for (int i = etc; etc; etc)" 2021-11-02 14:07:58 +11:00
Nigel Tao 4346028a23 Factor out fuzz/c/fuzzlib/fuzzlib_image_decoder.c 2020-12-15 22:21:55 +11: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 f909c69deb Have fuzz/* global variable names start with g_ 2020-03-26 14:49:43 +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 21682f403f Add fuzz/c/std/json_fuzzer.c 2020-03-01 12:01:42 +11:00
Nigel Tao 2914bae3b2 Re-format C function signatures 2020-02-26 09:40:30 +11:00
Nigel Tao 9cc2c25f3d Have different exit codes for errors vs exceptions 2020-02-23 17:05:49 +11:00
Nigel Tao aa846d2dd7 Remove io_{reader,writer} C types 2019-07-06 17:23:34 +10:00
Nigel Tao 77c778fb2e Let fuzzers recurse into directories 2019-02-16 11:59:41 +11:00
Nigel Tao e9709992e2 Have the fuzzers check for internal errors 2019-02-02 12:08:44 +11:00
Nigel Tao 6fed251b40 Split an io_buffer's fields into data and meta 2018-09-15 08:45:50 +10:00
Nigel Tao a0bafff465 Ship as a "single file C library" 2018-07-14 08:59:36 +10:00
Nigel Tao 25a106903f Have include guards start with WUFFS_INCLUDE_GUARD 2018-06-16 08:10:22 +10:00
Nigel Tao df96e48341 Rename some #ifndef WUFFS_BASE_HEADER_H guards 2018-06-10 09:37:30 +10:00
Nigel Tao 37ca5e8504 Remove fuzz' .cc files
They are no longer needed, as OSS-Fuzz has been updated:
https://github.com/google/oss-fuzz/commit/97db7e9
2018-05-03 11:40:37 +10:00
Nigel Tao db308f1045 Make the fuzz harness print status messages 2018-05-03 09:03:48 +10:00
Nigel Tao 2a97a1ad29 Edit fuzz' .c files to be C, not C++ 2018-05-03 08:15:29 +10:00
Nigel Tao 5ad9055572 Copy fuzz' .cc files as .c files 2018-05-03 08:10:25 +10:00
Nigel Tao 8827e222b1 Add wuffs_base__io_buffer__{reader,writer} funcs 2018-04-27 20:54:44 +10:00
Nigel Tao 97aab37462 Rename buf1, reader1, etc to io_buffer, io_reader
Also remove the unused Buf1, Buf2 and Usize tokens.
2018-04-05 20:49:48 +10:00
Nigel Tao b182db372a Make fuzzers C++ programs, not C
Using https://github.com/google/oss-fuzz on .c files says:

clang-7.0: warning: treating 'c' input as 'c++' when in C++ mode, this
behavior is deprecated [-Wdeprecated]
2018-02-17 15:41:21 +11:00
Nigel Tao b23c235067 Add fuzz tests 2018-02-17 14:14:38 +11:00