warn rather than fail if AFL_MAP_SIZE is set and not understood by instrumenter

This commit is contained in:
van Hauser
2020-07-06 14:11:21 +02:00
parent 75fa1ac3b0
commit 0aed549df1
3 changed files with 3 additions and 3 deletions

View File

@ -379,7 +379,7 @@ int main(int argc, char **argv, char **envp) {
u32 map_size = atoi(ptr); u32 map_size = atoi(ptr);
if (map_size != MAP_SIZE) if (map_size != MAP_SIZE)
WARN("AFL_MAP_SIZE is not supported by afl-gcc-fast"); WARNF("AFL_MAP_SIZE is not supported by afl-gcc-fast");
} }

View File

@ -939,7 +939,7 @@ int main(int argc, char **argv, char **envp) {
u32 map_size = atoi(ptr2); u32 map_size = atoi(ptr2);
if (map_size != MAP_SIZE) if (map_size != MAP_SIZE)
WARN("AFL_MAP_SIZE is not supported by afl-clang-fast"); WARNF("AFL_MAP_SIZE is not supported by afl-clang-fast");
} }

View File

@ -465,7 +465,7 @@ int main(int argc, char **argv) {
u32 map_size = atoi(ptr); u32 map_size = atoi(ptr);
if (map_size != MAP_SIZE) { if (map_size != MAP_SIZE) {
WARN("AFL_MAP_SIZE is not supported by afl-gcc"); WARNF("AFL_MAP_SIZE is not supported by afl-gcc");
} }