Skip to content

Commit 5ba0109

Browse files
author
Daniel Kuehr
committed
Fix OOB in fuzzer coverage reports
1 parent 0042e16 commit 5ba0109

File tree

1 file changed

+1
-1
lines changed
  • tools/fuzzing/src/transaction_fuzzer/coverage

1 file changed

+1
-1
lines changed

tools/fuzzing/src/transaction_fuzzer/coverage/reports.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ impl CoverageReport {
497497
//println!("{:?}", source_range);
498498

499499
for line in start..=end {
500-
if line == lines.len() || lines[line].line.chars().count() == 0 {
500+
if line >= lines.len() || lines[line].line.chars().count() == 0 {
501501
continue;
502502
}
503503

0 commit comments

Comments
 (0)