mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-11 17:51:32 +00:00
Merge pull request #2297 from SonicStark/dev-ltoctx-0211
Excess `afl_global_id` Increase of LTO-CTX
This commit is contained in:
@ -2005,8 +2005,11 @@ void ModuleSanitizerCoverageLTO::instrumentFunction(
|
||||
|
||||
}
|
||||
|
||||
extra_ctx_inst += inst_in_this_func * (call_counter - 1);
|
||||
afl_global_id += extra_ctx_inst;
|
||||
uint32_t extra_ctx_inst_in_this_func =
|
||||
inst_in_this_func * (call_counter - 1);
|
||||
|
||||
extra_ctx_inst += extra_ctx_inst_in_this_func;
|
||||
afl_global_id += extra_ctx_inst_in_this_func;
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user