diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-03-23 10:09:55 +0100 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-03-23 10:09:55 +0100 |
commit | ee9447de01df3f2268c6d4e494d125bad5192de6 (patch) | |
tree | 43bff7680fcb1bbc3cb0c633644f8f1c96c36e8c | |
parent | dcfc24501b52d44f49bda5b024415c699b1316cb (diff) | |
download | afl++-ee9447de01df3f2268c6d4e494d125bad5192de6.tar.gz |
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.
-rw-r--r-- | src/afl-fuzz-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c index 3d75f404..038c4393 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -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; |