set class afl instrumentation if llvm <= 6

This commit is contained in:
van Hauser
2020-06-16 15:59:09 +02:00
parent bac2da8669
commit e5dcaa818e
2 changed files with 11 additions and 9 deletions

View File

@ -757,12 +757,14 @@ int main(int argc, char **argv, char **envp) {
if (instrument_mode == 0) {
#ifndef USE_TRACE_PC
if (getenv("AFL_LLVM_WHITELIST"))
instrument_mode = INSTRUMENT_AFL;
else
#if LLVM_VERSION_MAJOR <= 6
instrument_mode = INSTRUMENT_AFL;
#else
if (getenv("AFL_LLVM_WHITELIST"))
instrument_mode = INSTRUMENT_AFL;
else
instrument_mode = INSTRUMENT_PCGUARD;
#endif
instrument_mode = INSTRUMENT_PCGUARD;
}