mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 11:28:08 +00:00
added AFL_CMPLOG_ONLY_NEW feature
This commit is contained in:
@ -1079,28 +1079,28 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
if (optind == argc || !in_file) { usage(argv[0]); }
|
||||
|
||||
if (qemu_mode && getenv("AFL_USE_QASAN")) {
|
||||
|
||||
u8* preload = getenv("AFL_PRELOAD");
|
||||
u8* libqasan = get_libqasan_path(argv_orig[0]);
|
||||
|
||||
|
||||
u8 *preload = getenv("AFL_PRELOAD");
|
||||
u8 *libqasan = get_libqasan_path(argv_orig[0]);
|
||||
|
||||
if (!preload) {
|
||||
|
||||
|
||||
setenv("AFL_PRELOAD", libqasan, 0);
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
u8 *result = ck_alloc(strlen(libqasan) + strlen(preload) + 2);
|
||||
strcpy(result, libqasan);
|
||||
strcat(result, " ");
|
||||
strcat(result, preload);
|
||||
|
||||
|
||||
setenv("AFL_PRELOAD", result, 1);
|
||||
ck_free(result);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
ck_free(libqasan);
|
||||
|
||||
|
||||
}
|
||||
|
||||
map_size = get_map_size();
|
||||
|
Reference in New Issue
Block a user