diff options
author | Your Name <you@example.com> | 2021-11-09 18:29:25 +0000 |
---|---|---|
committer | Your Name <you@example.com> | 2021-11-10 05:25:29 +0000 |
commit | 02e8919cbc744064510f6cd99539f7662343073f (patch) | |
tree | 9f9a8fc6346242b793ce7e671813168ccec72a8e /frida_mode/src/util.c | |
parent | 8578b6b01c5f41d8a75ae83cb2c058fe89bf90df (diff) | |
download | afl++-02e8919cbc744064510f6cd99539f7662343073f.tar.gz |
Suppress spurious output
Diffstat (limited to 'frida_mode/src/util.c')
-rw-r--r-- | frida_mode/src/util.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/frida_mode/src/util.c b/frida_mode/src/util.c index 09e8a58b..2b0f7be6 100644 --- a/frida_mode/src/util.c +++ b/frida_mode/src/util.c @@ -1,7 +1,5 @@ #include "util.h" -#include "debug.h" - guint64 util_read_address(char *key) { char *value_str = getenv(key); @@ -66,3 +64,19 @@ guint64 util_read_num(char *key) { } +gboolean util_output_enabled(void) { + + static gboolean initialized = FALSE; + static gboolean enabled = TRUE; + + if (!initialized) { + + initialized = TRUE; + if (getenv("AFL_DEBUG_CHILD") == NULL) { enabled = FALSE; } + + } + + return enabled; + +} + |