Skip to content

Commit 5a53be1

Browse files
committed
add --disable-gcov-check, closes mrash#28
1 parent 9f88449 commit 5a53be1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

afl-cov

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ def is_gcov_enabled(cargs):
889889
continue
890890
if (which(part)):
891891
found_exec = True
892-
if is_bin_gcov_enabled(part, cargs):
892+
if not cargs.disable_gcov_check and is_bin_gcov_enabled(part, cargs):
893893
found_code_cov_binary = True
894894
break
895895

@@ -898,7 +898,7 @@ def is_gcov_enabled(cargs):
898898
"--coverage-cmd '%s'" % cargs.coverage_cmd
899899
return False
900900

901-
if not found_code_cov_binary:
901+
if not cargs.disable_gcov_check and not found_code_cov_binary:
902902
print "[*] Could not find an executable binary with code " \
903903
"coverage support ('-fprofile-arcs -ftest-coverage') " \
904904
"in --coverage-cmd '%s'" % cargs.coverage_cmd
@@ -1139,6 +1139,9 @@ def parse_cmdline():
11391139
p.add_argument("--gcov-check-bin", type=str,
11401140
help="Test a specific binary for code coverage support",
11411141
default=False)
1142+
p.add_argument("--disable-gcov-check", type=str,
1143+
help="Disable check for code coverage support",
1144+
default=False)
11421145
p.add_argument("--background", action='store_true',
11431146
help="Background mode - if also in --live mode, will exit when the alf-fuzz process is finished",
11441147
default=False)

0 commit comments

Comments
 (0)