add malloc check

This commit is contained in:
vanhauser-thc
2022-08-19 13:17:01 +02:00
parent 7b2145b914
commit b4cb3784a5

View File

@ -316,6 +316,8 @@ void parse_fsanitize(char *string) {
char *new = malloc(strlen(string) + 1);
char *tmp = malloc(strlen(ptr));
u32 count = 0, len, ende = 0;
if (!new || !tmp) { FATAL("could not aquire memory"); }
strcpy(new, "-fsanitize=");
do {