mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 04:18:06 +00:00
add malloc check
This commit is contained in:
@ -316,6 +316,8 @@ void parse_fsanitize(char *string) {
|
|||||||
char *new = malloc(strlen(string) + 1);
|
char *new = malloc(strlen(string) + 1);
|
||||||
char *tmp = malloc(strlen(ptr));
|
char *tmp = malloc(strlen(ptr));
|
||||||
u32 count = 0, len, ende = 0;
|
u32 count = 0, len, ende = 0;
|
||||||
|
|
||||||
|
if (!new || !tmp) { FATAL("could not aquire memory"); }
|
||||||
strcpy(new, "-fsanitize=");
|
strcpy(new, "-fsanitize=");
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
Reference in New Issue
Block a user