diff options
author | van Hauser <vh@thc.org> | 2020-06-03 15:49:23 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-06-03 15:49:23 +0200 |
commit | dd0ca7335ff93090def7be7fd0b46e9f71375004 (patch) | |
tree | 3c447d24b4fed3d8277a19ffe8b53000656a7a95 /examples | |
parent | 686d8823eb8eab3a7cb87f4affec56e0d6e402d1 (diff) | |
download | afl++-dd0ca7335ff93090def7be7fd0b46e9f71375004.tar.gz |
switch shmem_len to the map
Diffstat (limited to 'examples')
-rw-r--r-- | examples/aflpp_driver/aflpp_qemu_driver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/aflpp_driver/aflpp_qemu_driver.c b/examples/aflpp_driver/aflpp_qemu_driver.c index ea4dab95..604feb91 100644 --- a/examples/aflpp_driver/aflpp_qemu_driver.c +++ b/examples/aflpp_driver/aflpp_qemu_driver.c @@ -7,9 +7,9 @@ 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 uint8_t AflInputBuf[kMaxAflInputSize]; +static uint8_t AflInputBuf[kMaxAflInputSize]; -void __attribute__ ((noinline)) 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); @@ -31,7 +31,7 @@ int main(int argc, char **argv) { LLVMFuzzerTestOneInput(dummy_input, 1); } - + return 0; } |