diff options
author | van Hauser <vh@thc.org> | 2020-06-05 09:42:17 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-06-05 09:42:17 +0200 |
commit | e01cad2f7de77c4704243d7011de2bff95fd59f7 (patch) | |
tree | abcb7cc5dae9b35b3199d871136e343c528521b9 /examples | |
parent | a1beb72cad5a9993e4bd437c55523824d515a72f (diff) | |
download | afl++-e01cad2f7de77c4704243d7011de2bff95fd59f7.tar.gz |
qemu debug
Diffstat (limited to 'examples')
-rw-r--r-- | examples/aflpp_driver/aflpp_qemu_driver.c | 2 | ||||
-rw-r--r-- | examples/qemu_persistent_hook/read_into_rdi.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/aflpp_driver/aflpp_qemu_driver.c b/examples/aflpp_driver/aflpp_qemu_driver.c index ee7dde10..4f3e5f71 100644 --- a/examples/aflpp_driver/aflpp_qemu_driver.c +++ b/examples/aflpp_driver/aflpp_qemu_driver.c @@ -6,7 +6,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size); __attribute__((weak)) int LLVMFuzzerInitialize(int *argc, char ***argv); -static const size_t kMaxAflInputSize = 1 << 20; +static const size_t kMaxAflInputSize = 1 * 1024 * 1024; static uint8_t AflInputBuf[kMaxAflInputSize]; void __attribute__((noinline)) afl_qemu_driver_stdin_input(void) { diff --git a/examples/qemu_persistent_hook/read_into_rdi.c b/examples/qemu_persistent_hook/read_into_rdi.c index 180d9f00..bd6d3f45 100644 --- a/examples/qemu_persistent_hook/read_into_rdi.c +++ b/examples/qemu_persistent_hook/read_into_rdi.c @@ -1,6 +1,7 @@ #include <stdint.h> #include <stdio.h> #include <unistd.h> +#include <string.h> #define g2h(x) ((void *)((unsigned long)(x) + guest_base)) #define h2g(x) ((uint64_t)(x)-guest_base) |