Skip to content

Commit 2484cb6

Browse files
authored
Merge pull request mrash#32 from steele/symlink-follow
Add the '--follow' command line option
2 parents a08a0a4 + fa0253c commit 2484cb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

afl-cov

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,8 @@ def lcov_gen_coverage(cov_paths, cargs):
564564
lcov_opts = ''
565565
if cargs.enable_branch_coverage:
566566
lcov_opts += ' --rc lcov_branch_coverage=1'
567+
if cargs.follow:
568+
lcov_opts += ' --follow'
567569

568570
run_cmd(cargs.lcov_path \
569571
+ lcov_opts
@@ -1104,6 +1106,8 @@ def parse_cmdline():
11041106
help="top level AFL fuzzing directory")
11051107
p.add_argument("-c", "--code-dir", type=str,
11061108
help="Directory where the code lives (compiled with code coverage support)")
1109+
p.add_argument("-f", "--follow", action='store_true',
1110+
help="Follow links when searching .da files", default=False)
11071111
p.add_argument("-O", "--overwrite", action='store_true',
11081112
help="Overwrite existing coverage results", default=False)
11091113
p.add_argument("--disable-cmd-redirection", action='store_true',

0 commit comments

Comments
 (0)