fix issue #194 more seriously

This commit is contained in:
hexcoder-
2020-02-13 21:06:09 +01:00
parent afb23f09cf
commit 24dcc5eb37
6 changed files with 75 additions and 15 deletions

View File

@ -282,6 +282,18 @@ static void edit_params(u32 argc, char** argv) {
}
if (!asan_set) {
if (getenv("AFL_USE_UBSAN")) {
cc_params[cc_par_cnt++] = "-fsanitize=undefined";
cc_params[cc_par_cnt++] = "-fsanitize-undefined-trap-on-error";
cc_params[cc_par_cnt++] = "-fno-sanitize-recover=all";
}
}
#ifdef USEMMAP
cc_params[cc_par_cnt++] = "-lrt";
#endif