From 0f7abbb30f3fd1bec2dd3221d7bd02014cea762e Mon Sep 17 00:00:00 2001 From: Carlos Medeiros Date: Tue, 5 Sep 2023 13:21:09 +0100 Subject: [PATCH] change fuzz folder name --- {fuzzing => fuzz}/parser_parse.cpp | 4 +++- {fuzzing => fuzz}/run-fuzz-crashes.py | 0 {fuzzing => fuzz}/run-fuzzers.py | 0 3 files changed, 3 insertions(+), 1 deletion(-) rename {fuzzing => fuzz}/parser_parse.cpp (94%) rename {fuzzing => fuzz}/run-fuzz-crashes.py (100%) rename {fuzzing => fuzz}/run-fuzzers.py (100%) diff --git a/fuzzing/parser_parse.cpp b/fuzz/parser_parse.cpp similarity index 94% rename from fuzzing/parser_parse.cpp rename to fuzz/parser_parse.cpp index 69d6ba61..14c7e0db 100644 --- a/fuzzing/parser_parse.cpp +++ b/fuzz/parser_parse.cpp @@ -19,14 +19,16 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { parser_context_t ctx; parser_error_t rc; + parser_tx_t tx_obj; + MEMZERO(&tx_obj, sizeof(tx_obj)); char buffer[1000]; array_to_hexstr(buffer, sizeof(buffer), data, size); fprintf(stderr, "%s\n", buffer); fprintf(stderr, "----------------------------------------------\n"); - rc = parser_parse(&ctx, data, size); + rc = parser_parse(&ctx, data, size, &tx_obj); if (rc != parser_ok) { return 0; } diff --git a/fuzzing/run-fuzz-crashes.py b/fuzz/run-fuzz-crashes.py similarity index 100% rename from fuzzing/run-fuzz-crashes.py rename to fuzz/run-fuzz-crashes.py diff --git a/fuzzing/run-fuzzers.py b/fuzz/run-fuzzers.py similarity index 100% rename from fuzzing/run-fuzzers.py rename to fuzz/run-fuzzers.py