diff options
author | van Hauser <vh@thc.org> | 2020-04-17 10:08:56 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-04-17 10:08:56 +0200 |
commit | ef311ec70cd9f58cc58fe67fd693d94e01edbf98 (patch) | |
tree | 9b74f79e93d3b5412cbe6daea12aa468ddb5ee01 /gcc_plugin/afl-gcc-fast.c | |
parent | 5b70d23211ddeddfb4d1dfce29a50234d08e9502 (diff) | |
download | afl++-ef311ec70cd9f58cc58fe67fd693d94e01edbf98.tar.gz |
done implementing AFL_MAP_SIZE
Diffstat (limited to 'gcc_plugin/afl-gcc-fast.c')
-rw-r--r-- | gcc_plugin/afl-gcc-fast.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc_plugin/afl-gcc-fast.c b/gcc_plugin/afl-gcc-fast.c index 8953c523..0e51ee62 100644 --- a/gcc_plugin/afl-gcc-fast.c +++ b/gcc_plugin/afl-gcc-fast.c @@ -364,6 +364,16 @@ int main(int argc, char **argv, char **envp) { be_quiet = 1; + u8 *ptr; + if (!be_quiet && + ((ptr = getenv("AFL_MAP_SIZE")) || (ptr = getenv("AFL_MAPSIZE")))) { + + u32 map_size = atoi(ptr); + if (map_size != MAP_SIZE) + FATAL("AFL_MAP_SIZE is not supported by afl-gcc-fast"); + + } + check_environment_vars(envp); find_obj(argv[0]); |