diff options
author | van Hauser <vh@thc.org> | 2023-07-15 09:42:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-15 09:42:04 +0200 |
commit | 7f17a94349830a54d2c899f56b149c0d7f9ffb9c (patch) | |
tree | 7ec0d2b73ca236c73d8d2b337396f320bcf1728d /include | |
parent | 497ff5ff7962ee492fef315227366d658c637ab2 (diff) | |
parent | 2b8e528a3b5f44df590b8f727983d142857d0433 (diff) | |
download | afl++-7f17a94349830a54d2c899f56b149c0d7f9ffb9c.tar.gz |
Merge pull request #1798 from AFLplusplus/dev
push to stable
Diffstat (limited to 'include')
-rw-r--r-- | include/afl-fuzz.h | 2 | ||||
-rw-r--r-- | include/android-ashmem.h | 4 | ||||
-rw-r--r-- | include/config.h | 11 |
3 files changed, 14 insertions, 3 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h index 9da5cc03..27668da0 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -31,7 +31,7 @@ #define MESSAGES_TO_STDOUT #ifndef _GNU_SOURCE - #define _GNU_SOURCE 1 + #define _GNU_SOURCE #endif #ifndef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 diff --git a/include/android-ashmem.h b/include/android-ashmem.h index 1bfd3220..065c213b 100644 --- a/include/android-ashmem.h +++ b/include/android-ashmem.h @@ -2,7 +2,9 @@ #ifndef _ANDROID_ASHMEM_H #define _ANDROID_ASHMEM_H - #define _GNU_SOURCE + #ifndef _GNU_SOURCE + #define _GNU_SOURCE + #endif #include <sys/syscall.h> #include <unistd.h> #include <fcntl.h> diff --git a/include/config.h b/include/config.h index 8585041e..7c29a674 100644 --- a/include/config.h +++ b/include/config.h @@ -360,9 +360,10 @@ 65535, /* Overflow unsig 16-bit when incremented */ \ 65536, /* Overflow unsig 16 bit */ \ 100663045, /* Large positive number (endian-agnostic) */ \ + 2139095040, /* float infinite */ \ 2147483647 /* Overflow signed 32-bit when incremented */ -#define INTERESTING_32_LEN 8 +#define INTERESTING_32_LEN 9 /*********************************************************** * * @@ -446,7 +447,15 @@ after changing this - otherwise, SEGVs may ensue. */ #define MAP_SIZE_POW2 16 + +/* Do not change this unless you really know what you are doing. */ + #define MAP_SIZE (1U << MAP_SIZE_POW2) +#if MAP_SIZE <= 65536 + #define MAP_INITIAL_SIZE (2 << 20) // = 2097152 +#else + #define MAP_INITIAL_SIZE MAP_SIZE +#endif /* Maximum allocator request size (keep well under INT_MAX): */ |