From bf54d3bc7be151ee3de15e3cc9fabea68369008e Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 31 Dec 2023 08:49:16 -0300 Subject: Rewrite code, but keeping the exact same semantic and behaviour - assert that the generated `siphash.o` code is identical to the original code, available at `tests/assert-identical.sh`; - remove unneeded `#define`s; - rewrite code with the correct indentation, spacing and formatting; - use C99 constructs over C89 (for loop variable declarations inside the parentheses); - fix the public API. --- tests/fuzz/another.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/fuzz/another.c (limited to 'tests/fuzz/another.c') diff --git a/tests/fuzz/another.c b/tests/fuzz/another.c new file mode 100644 index 0000000..7fbfe07 --- /dev/null +++ b/tests/fuzz/another.c @@ -0,0 +1,17 @@ +#include +#include +#include + +static bool +fuzz_me(const uint8_t *const data, const size_t size) { + (void)data; + (void)size; + return true; +} + +int +LLVMFuzzerTestOneInput(const uint8_t *const data, const size_t size) { + int rc = 0; + fuzz_me(data, size); + return rc; +} -- cgit v1.2.3