commit | b4cb3784a5135703444357876c62d19be4a58862 | [log] [tgz] |
---|---|---|
author | vanhauser-thc <vh@thc.org> | Fri Aug 19 13:17:01 2022 +0200 |
committer | vanhauser-thc <vh@thc.org> | Fri Aug 19 13:17:01 2022 +0200 |
tree | 01553b6f26b42dda6d5694d2219ae28b72c20e79 | |
parent | 7b2145b914ba3c8443437c68ae29458d832b1e35 [diff] |
add malloc check
diff --git a/src/afl-cc.c b/src/afl-cc.c index 4c377ad..ffd1547 100644 --- a/src/afl-cc.c +++ b/src/afl-cc.c
@@ -316,6 +316,8 @@ 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 {