Merge pull request #2297 from SonicStark/dev-ltoctx-0211

Excess `afl_global_id` Increase of LTO-CTX
This commit is contained in:
van Hauser
2025-02-12 09:06:19 +01:00
committed by GitHub

View File

@ -2005,8 +2005,11 @@ void ModuleSanitizerCoverageLTO::instrumentFunction(
} }
extra_ctx_inst += inst_in_this_func * (call_counter - 1); uint32_t extra_ctx_inst_in_this_func =
afl_global_id += extra_ctx_inst; 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;
} }