add AFL_USE_UBSAN
@@ -300,6 +300,14 @@ static void edit_params(u32 argc, char** argv) {
}
+ 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 USE_TRACE_PC
