about summary refs log tree commit diff
path: root/examples/afl_frida/afl-frida.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-11-13 09:02:44 +0100
committervan Hauser <vh@thc.org>2020-11-13 09:02:44 +0100
commit119d7d0025ad3234007c7fbed08b6b33b892e9a5 (patch)
treed0f5f4ce77688cdf6e358973a77a40e42c936c73 /examples/afl_frida/afl-frida.c
parent54a312a5fe7d83fcee8b420868bc918622e9b3a6 (diff)
downloadafl++-119d7d0025ad3234007c7fbed08b6b33b892e9a5.tar.gz
fix frida example debug output
Diffstat (limited to 'examples/afl_frida/afl-frida.c')
-rw-r--r--examples/afl_frida/afl-frida.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/afl_frida/afl-frida.c b/examples/afl_frida/afl-frida.c
index 79d823f1..31bf8f25 100644
--- a/examples/afl_frida/afl-frida.c
+++ b/examples/afl_frida/afl-frida.c
@@ -504,11 +504,12 @@ int main() {
     previous_pc = 0;  // Required!
 
 #ifdef _DEBUG
-    fprintf(stderr, "CLIENT crc: %016llx len: %u\n", hash64(__afl_fuzz_ptr, *__a
+    fprintf(stderr, "CLIENT crc: %016llx len: %u\n",
+            hash64(__afl_fuzz_ptr, *__afl_fuzz_len), *__afl_fuzz_len);
     fprintf(stderr, "RECV:");
     for (int i = 0; i < *__afl_fuzz_len; i++)
       fprintf(stderr, "%02x", __afl_fuzz_ptr[i]);
-    fprintf(stderr,"\n");
+    fprintf(stderr, "\n");
 #endif
 
     // STEP 3: ensure the minimum length is present and setup the target