about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-07-06 14:11:21 +0200
committervan Hauser <vh@thc.org>2020-07-06 14:11:21 +0200
commit0aed549df102cde6a60dc9ef57524413e978814f (patch)
treece2a575ef9a08dc20268dbaada434082dbdfb012
parent75fa1ac3b00a01a0ae02addcedae0e09d674930e (diff)
downloadafl++-0aed549df102cde6a60dc9ef57524413e978814f.tar.gz
warn rather than fail if AFL_MAP_SIZE is set and not understood by instrumenter
-rw-r--r--gcc_plugin/afl-gcc-fast.c2
-rw-r--r--llvm_mode/afl-clang-fast.c2
-rw-r--r--src/afl-gcc.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/gcc_plugin/afl-gcc-fast.c b/gcc_plugin/afl-gcc-fast.c
index fa1c70d7..b1bacfbd 100644
--- a/gcc_plugin/afl-gcc-fast.c
+++ b/gcc_plugin/afl-gcc-fast.c
@@ -379,7 +379,7 @@ int main(int argc, char **argv, char **envp) {
 
     u32 map_size = atoi(ptr);
     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");
 
   }
 
diff --git a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c
index f634a05c..72262c1e 100644
--- a/llvm_mode/afl-clang-fast.c
+++ b/llvm_mode/afl-clang-fast.c
@@ -939,7 +939,7 @@ int main(int argc, char **argv, char **envp) {
 
     u32 map_size = atoi(ptr2);
     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");
 
   }
 
diff --git a/src/afl-gcc.c b/src/afl-gcc.c
index 2482869e..8d91164b 100644
--- a/src/afl-gcc.c
+++ b/src/afl-gcc.c
@@ -465,7 +465,7 @@ int main(int argc, char **argv) {
     u32 map_size = atoi(ptr);
     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");
 
     }