libasan.so is not a thing. libclang-rt.asan-ARCH.so is the asan DSO and it is not linked by default. Search for __asan_init instead.

This commit is contained in:
Andrea Fioraldi
2020-03-23 10:09:55 +01:00
parent dcfc24501b
commit ee9447de01

View File

@ -2014,7 +2014,7 @@ void check_binary(afl_state_t *afl, u8 *fname) {
}
if (memmem(f_data, f_len, "libasan.so", 10) ||
if (memmem(f_data, f_len, "__asan_init", 11) ||
memmem(f_data, f_len, "__msan_init", 11))
afl->fsrv.uses_asan = 1;