Skip to content

Commit

Permalink
warn rather than fail if AFL_MAP_SIZE is set and not understood by in…
Browse files Browse the repository at this point in the history
…strumenter
  • Loading branch information
vanhauser-thc committed Jul 6, 2020
1 parent b5a0031 commit 75fa1ac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ gcc_plugin:
- laf-intel
- better instrumentation (seems to be better with gcc-9+)

better documentation:
- flow graph
- short intro
- faq (how to increase stability, speed, many parallel ...)

qemu_mode:
- update to 5.x (if the performance bug if gone)
- non colliding instrumentation
Expand Down
2 changes: 1 addition & 1 deletion gcc_plugin/afl-gcc-fast.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ int main(int argc, char **argv, char **envp) {

u32 map_size = atoi(ptr);
if (map_size != MAP_SIZE)
FATAL("AFL_MAP_SIZE is not supported by afl-gcc-fast");
WARN("AFL_MAP_SIZE is not supported by afl-gcc-fast");

}

Expand Down
2 changes: 1 addition & 1 deletion llvm_mode/afl-clang-fast.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ int main(int argc, char **argv, char **envp) {

u32 map_size = atoi(ptr2);
if (map_size != MAP_SIZE)
FATAL("AFL_MAP_SIZE is not supported by afl-clang-fast");
WARN("AFL_MAP_SIZE is not supported by afl-clang-fast");

}

Expand Down
2 changes: 1 addition & 1 deletion src/afl-gcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ int main(int argc, char **argv) {
u32 map_size = atoi(ptr);
if (map_size != MAP_SIZE) {

FATAL("AFL_MAP_SIZE is not supported by afl-gcc");
WARN("AFL_MAP_SIZE is not supported by afl-gcc");

}

Expand Down

0 comments on commit 75fa1ac

Please sign in to comment.