Added AFL_UBSAN_VERBOSE variable

This commit is contained in:
Stepan Gulyaev
2024-11-21 16:37:24 +03:00
parent ebb919f771
commit 7aecf14c07
2 changed files with 14 additions and 7 deletions

View File

@ -1945,10 +1945,15 @@ void add_sanitizers(aflcc_state_t *aflcc, char **envp) {
if (getenv("AFL_USE_UBSAN") || aflcc->have_ubsan) {
if (!aflcc->have_ubsan) {
if (!aflcc->have_ubsan) { insert_param(aflcc, "-fsanitize=undefined"); }
insert_param(aflcc, "-fsanitize=undefined");
insert_param(aflcc, "-fno-sanitize-recover=all");
if (getenv("AFL_UBSAN_VERBOSE")) {
insert_param(aflcc, "-fno-sanitize-recover=undefined");
} else {
insert_param(aflcc, "-fsanitize-trap=undefined");
}