Skip to content

Commit c49fd6a

Browse files
committed
fix: handle unfilled values in mul mod runner
1 parent b427a3e commit c49fd6a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

vm/src/vm/runners/builtin_runner/modulo.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,13 @@ impl ModBuiltinRunner {
566566
if let Some((_, mul_mod_runner, _)) = mul_mod {
567567
if mul_mod_runner.fill_value(memory, &mul_mod_inputs, mul_mod_index)? {
568568
mul_mod_index += 1;
569+
continue;
570+
} else {
571+
return Err(RunnerError::FillMemoryCoudNotFillTable(
572+
add_mod_index,
573+
mul_mod_index,
574+
));
569575
}
570-
continue;
571576
}
572577
}
573578

0 commit comments

Comments
 (0)