Skip to content
Snippets Groups Projects
Commit 3a77d508 authored by Lasse Seivaag's avatar Lasse Seivaag
Browse files

Made some changes, move free to end of test

parent fb19d13f
No related branches found
No related tags found
No related merge requests found
Pipeline #85142 passed
......@@ -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;
}
a.out 0 → 100644
File added
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment