done implementing AFL_MAP_SIZE

This commit is contained in:
van Hauser
2020-04-17 10:08:56 +02:00
parent 5b70d23211
commit ef311ec70c
5 changed files with 41 additions and 13 deletions

View File

@ -412,7 +412,8 @@ int main(int argc, char **argv) {
}
u8 *ptr;
if ((ptr = getenv("AFL_MAP_SIZE")) || (ptr = getenv("AFL_MAPSIZE"))) {
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");