diff options
author | hexcoder- <heiko@hexco.de> | 2020-04-17 13:30:12 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-04-17 13:30:12 +0200 |
commit | a6d4f04019db512a5f3be0735cf1eede14ac4375 (patch) | |
tree | 1b05fa6f42c63e3e82322f86050c5763f93b21e5 /gcc_plugin/afl-gcc-fast.c | |
parent | 87d27b861649295c3de93e48c47544f29f07f36a (diff) | |
parent | f22d8120ef6814c9af3b7a0c291c1494137fc53c (diff) | |
download | afl++-a6d4f04019db512a5f3be0735cf1eede14ac4375.tar.gz |
Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev
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]); |