about summary refs log tree commit diff
path: root/examples/aflpp_driver/aflpp_qemu_driver.c
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2020-06-03 11:51:35 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2020-06-03 11:51:35 +0200
commit177db9cf7941975d31e2d1ff8304659d14561568 (patch)
tree36cc30f30aaa3ed3386f0019d9ad7bd605591bf2 /examples/aflpp_driver/aflpp_qemu_driver.c
parent2d8c3d29345b57fd7e4d2fcb335151d7ef8f08ca (diff)
downloadafl++-177db9cf7941975d31e2d1ff8304659d14561568.tar.gz
no inline in qemu driver
Diffstat (limited to 'examples/aflpp_driver/aflpp_qemu_driver.c')
-rw-r--r--examples/aflpp_driver/aflpp_qemu_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/aflpp_driver/aflpp_qemu_driver.c b/examples/aflpp_driver/aflpp_qemu_driver.c
index 404ce84c..ea4dab95 100644
--- a/examples/aflpp_driver/aflpp_qemu_driver.c
+++ b/examples/aflpp_driver/aflpp_qemu_driver.c
@@ -9,7 +9,7 @@ __attribute__((weak)) int LLVMFuzzerInitialize(int *argc, char ***argv);
 static const size_t kMaxAflInputSize = 1 << 20;
 static uint8_t AflInputBuf[kMaxAflInputSize];
 
-void afl_qemu_driver_stdin_input(void) {
+void __attribute__ ((noinline)) afl_qemu_driver_stdin_input(void) {
 
   size_t l = read(0, AflInputBuf, kMaxAflInputSize);
   LLVMFuzzerTestOneInput(AflInputBuf, l);