mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-23 22:35:19 +00:00
fix LTO selective instrumentation
This commit is contained in:
@ -507,6 +507,7 @@ bool ModuleSanitizerCoverage::instrumentModule(
|
||||
Zero = ConstantInt::get(Int8Tyi, 0);
|
||||
One = ConstantInt::get(Int8Tyi, 1);
|
||||
|
||||
initInstrumentList();
|
||||
scanForDangerousFunctions(&M);
|
||||
Mo = &M;
|
||||
|
||||
@ -1229,7 +1230,7 @@ void ModuleSanitizerCoverage::instrumentFunction(
|
||||
|
||||
// afl++ START
|
||||
if (!F.size()) return;
|
||||
if (isIgnoreFunction(&F)) return;
|
||||
if (!isInInstrumentList(&F)) return;
|
||||
// afl++ END
|
||||
|
||||
if (Options.CoverageType >= SanitizerCoverageOptions::SCK_Edge)
|
||||
|
Reference in New Issue
Block a user