Skip to content

Commit f18e7a6

Browse files
committed
Bug fix for number of args to logr(), found by github user @NimdaKey.
1 parent e07d3d7 commit f18e7a6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

afl-cov

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ def coverage_diff(cycle_num, fuzz_dir, cov_paths, afl_file, cov, cargs):
311311
delta_file = 'id:[%d-%d]...' % \
312312
(cov_paths['id_min'], cov_paths['id_max'])
313313

314-
new_cov = extract_coverage(cov_paths['lcov_info_final'], cargs)
314+
new_cov = extract_coverage(cov_paths['lcov_info_final'],
315+
cov_paths['log_file'], cargs)
315316

316317
if not new_cov:
317318
return
@@ -455,13 +456,14 @@ def cov_init(cfile, cov):
455456
cov[k][cfile]['line'] = {}
456457
return
457458

458-
def extract_coverage(lcov_file, cargs):
459+
def extract_coverage(lcov_file, log_file, cargs):
459460

460461
search_rv = False
461462
tmp_cov = {}
462463

463464
if not os.path.exists(lcov_file):
464-
logr("[-] Coverage file '%s' does not exist, skipping." % lcov_file)
465+
logr("[-] Coverage file '%s' does not exist, skipping." % lcov_file,
466+
log_file, cargs)
465467
return tmp_cov
466468

467469
### populate old lcov output for functions/lines that were called

0 commit comments

Comments
 (0)