diff --git a/FuzzTarget.c b/FuzzTarget.c index 3a38d10c0b6e0cf334a5601a55a40d9a89af31cf..3c283ae6402ff3a22ba6a559f7cfae8273fe7da1 100644 --- a/FuzzTarget.c +++ b/FuzzTarget.c @@ -5,7 +5,7 @@ //Test push for CI int LLVMFuzzerTestOneInput(const uint8_t * data, size_t size){ - printf("%zu\n", size); - replace_chars((char*)data, size); + char* ret = replace_chars((char*)data, size); + free(ret); return 0; } diff --git a/a.out b/a.out new file mode 100644 index 0000000000000000000000000000000000000000..9efa52ca126edfbcde791a88587362003d19f748 Binary files /dev/null and b/a.out differ diff --git a/main.h b/main.h index b7de12aa10377dcdb66ccd84abbde21ee3807815..d4077beebdccb8b0e4faaa4fe2b532f8f35a0267 100644 --- a/main.h +++ b/main.h @@ -49,6 +49,6 @@ char* replace_chars(const char* string, size_t len){ } charfarter++; } - free(new_string); //Only to appease ASAN, obviously the caller should free the resource + //free(new_string); //Only to appease ASAN, obviously the caller should free the resource return new_string; } \ No newline at end of file