Skip to content

Commit

Permalink
change fuzz folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
chcmedeiros committed Sep 5, 2023
1 parent be550d7 commit 0f7abbb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fuzzing/parser_parse.cpp → fuzz/parser_parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 0f7abbb

Please sign in to comment.