diff options
author | vanhauser-thc <vh@thc.org> | 2021-07-14 14:31:27 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-07-14 14:31:27 +0200 |
commit | 9ec63d3f1776ae1442fe89d5e076b58b36997f76 (patch) | |
tree | 470b04c8a3ddbda1b5fe1e6329eaac93d35ee44d /frida_mode/src | |
parent | 4fe572b80f76ff0b0e916b639d1e04d5af48b157 (diff) | |
download | afl++-9ec63d3f1776ae1442fe89d5e076b58b36997f76.tar.gz |
fix frida, fix dictionary generation to honor AFL_LLVM_{ALLOW/DENY}LIST
Diffstat (limited to 'frida_mode/src')
-rw-r--r-- | frida_mode/src/instrument/instrument.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frida_mode/src/instrument/instrument.c b/frida_mode/src/instrument/instrument.c index 81d14013..e1dabf92 100644 --- a/frida_mode/src/instrument/instrument.c +++ b/frida_mode/src/instrument/instrument.c @@ -1,6 +1,7 @@ #include <unistd.h> #include <sys/shm.h> #include <sys/mman.h> +#include <sys/syscall.h> #include "frida-gumjs.h" @@ -289,7 +290,7 @@ void instrument_init(void) { * needs to be different for each instance. */ instrument_hash_seed = - g_get_monotonic_time() ^ (((guint64)getpid()) << 32) ^ gettid(); + g_get_monotonic_time() ^ (((guint64)getpid()) << 32) ^ syscall(SYS_gettid); OKF("Instrumentation - seed [0x%016" G_GINT64_MODIFIER "x]", instrument_hash_seed); |