llvm 9 workaround

This commit is contained in:
van Hauser
2020-08-12 11:03:33 +02:00
parent 132b57cf03
commit e9b3da5d96

View File

@ -903,9 +903,16 @@ void __sanitizer_cov_trace_pc_guard(uint32_t *guard) {
}
*/
#if LLVM_VERSION_MAJOR < 9
__afl_area_ptr[*guard]++;
#else
__afl_area_ptr[*guard] = __afl_area_ptr[*guard] + 1 + (__afl_area_ptr[*guard] == 255 ? 1 : 0);
#endif
}
/* Init callback. Populates instrumentation IDs. Note that we're using