From 8190436f8f78d0bef799461447ddd37e9290c0aa Mon Sep 17 00:00:00 2001 From: van Hauser Date: Thu, 6 Aug 2020 18:51:16 +0200 Subject: fix --- examples/aflpp_driver/aflpp_driver.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples/aflpp_driver') diff --git a/examples/aflpp_driver/aflpp_driver.c b/examples/aflpp_driver/aflpp_driver.c index eab6b52c..b9c1e7b3 100644 --- a/examples/aflpp_driver/aflpp_driver.c +++ b/examples/aflpp_driver/aflpp_driver.c @@ -64,6 +64,10 @@ If 1, close stdout at startup. If 2 close stderr; if 3 close both. #include "hash.h" #endif +#ifndef MAP_FIXED_NOREPLACE +#define MAP_FIXED_NOREPLACE 0x100000 +#endif + // Platform detection. Copied from FuzzerInternal.h #ifdef __linux__ #define LIBFUZZER_LINUX 1 @@ -245,6 +249,7 @@ int main(int argc, char **argv) { uint8_t *dummy = (uint8_t*) mmap((void *)0x1000,250000, PROT_READ | PROT_WRITE, MAP_FIXED_NOREPLACE | MAP_SHARED | MAP_ANONYMOUS, -1, 0); __afl_area_ptr = dummy; + fprintf(stderr, "dummy: %p\n", __afl_area_ptr); printf( "======================= INFO =========================\n" -- cgit 1.4.1