Skip to content

Commit

Permalink
check afl-clang/gcc with sanitize-fuzzer
Browse files Browse the repository at this point in the history
  • Loading branch information
vanhauser-thc committed Nov 21, 2024
1 parent c1e4b8f commit 464ec51
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/afl-cc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3554,6 +3554,13 @@ int main(int argc, char **argv, char **envp) {

maybe_usage(aflcc, argc, argv);

if ((aflcc->compiler_mode == CLANG || aflcc->compiler_mode == GCC) &&
aflcc->need_aflpplib) {

FATAL("afl-gcc/afl-clang cannot be used together with -fsanitize=fuzzer");

}

mode_notification(aflcc);

if (aflcc->debug) debugf_args(argc, argv);
Expand Down

0 comments on commit 464ec51

Please sign in to comment.