mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 02:58:08 +00:00
fix review comments by Heiko
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
# AFL++ snapshot feature
|
# AFL++ snapshot feature
|
||||||
|
|
||||||
Snapshot is a mechanic that makes a snapshot from a process and then restores
|
Snapshotting is a feature that makes a snapshot from a process and then
|
||||||
it's state, which is faster then forking it again.
|
restores it's state, which is faster then forking it again.
|
||||||
|
|
||||||
All targets compiled with llvm_mode are automatically enabled for the
|
All targets compiled with llvm_mode are automatically enabled for the
|
||||||
snapshot feature.
|
snapshot feature.
|
||||||
|
@ -294,7 +294,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
|
|||||||
|
|
||||||
cc_params[cc_par_cnt++] = lto_flag;
|
cc_params[cc_par_cnt++] = lto_flag;
|
||||||
|
|
||||||
} else
|
} else {
|
||||||
|
|
||||||
if (instrument_mode == INSTRUMENT_PCGUARD) {
|
if (instrument_mode == INSTRUMENT_PCGUARD) {
|
||||||
|
|
||||||
@ -307,12 +307,15 @@ static void edit_params(u32 argc, char **argv, char **envp) {
|
|||||||
cc_params[cc_par_cnt++] = "-load";
|
cc_params[cc_par_cnt++] = "-load";
|
||||||
cc_params[cc_par_cnt++] = "-Xclang";
|
cc_params[cc_par_cnt++] = "-Xclang";
|
||||||
if (instrument_mode == INSTRUMENT_CFG)
|
if (instrument_mode == INSTRUMENT_CFG)
|
||||||
cc_params[cc_par_cnt++] = alloc_printf("%s/libLLVMInsTrim.so", obj_path);
|
cc_params[cc_par_cnt++] =
|
||||||
|
alloc_printf("%s/libLLVMInsTrim.so", obj_path);
|
||||||
else
|
else
|
||||||
cc_params[cc_par_cnt++] = alloc_printf("%s/afl-llvm-pass.so", obj_path);
|
cc_params[cc_par_cnt++] = alloc_printf("%s/afl-llvm-pass.so", obj_path);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
cc_params[cc_par_cnt++] = "-Qunused-arguments";
|
cc_params[cc_par_cnt++] = "-Qunused-arguments";
|
||||||
|
|
||||||
/* Detect stray -v calls from ./configure scripts. */
|
/* Detect stray -v calls from ./configure scripts. */
|
||||||
|
Reference in New Issue
Block a user