mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-19 21:13:45 +00:00
disable compare-transform-pass when lto_mode and autodictionary is used.
This commit is contained in:
@ -223,8 +223,10 @@ static void edit_params(u32 argc, char **argv, char **envp) {
|
||||
|
||||
}
|
||||
|
||||
if (getenv("LAF_TRANSFORM_COMPARES") ||
|
||||
getenv("AFL_LLVM_LAF_TRANSFORM_COMPARES")) {
|
||||
if (!getenv("AFL_LLVM_LTO_AUTODICTIONARY") // disabled when autodictionary
|
||||
&& instrument_mode != INSTRUMENT_LTO // and lto_mode is used
|
||||
&& (getenv("LAF_TRANSFORM_COMPARES") ||
|
||||
getenv("AFL_LLVM_LAF_TRANSFORM_COMPARES"))) {
|
||||
|
||||
cc_params[cc_par_cnt++] = "-Xclang";
|
||||
cc_params[cc_par_cnt++] = "-load";
|
||||
|
Reference in New Issue
Block a user