Skip to content

Commit 50e7856

Browse files
authored
Merge pull request #1121 from openmina/fuzzer_fixes
Fuzzer fixes
2 parents 0042e16 + 828c29f commit 50e7856

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ledger/src/proofs/public_input/prepared_statement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl PreparedStatement {
172172
uses_lookup.to_field_elements(&mut fields);
173173

174174
if uses_lookup {
175-
fields.push(lookup_value.unwrap());
175+
fields.push(lookup_value.unwrap_or(Fq::zero()));
176176
} else {
177177
fields.push(Fq::zero());
178178
}

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)