There was an error while loading. Please reload this page.
1 parent ab095bd commit 4419540Copy full SHA for 4419540
1 file changed
rust/src/fvm/machine.rs
@@ -614,8 +614,9 @@ fn FVM_BeginReservations(
614
return FvmReservationStatus::Ok;
615
}
616
617
- // Enforce a maximum encoded plan size (8 MiB).
618
- const MAX_PLAN_BYTES: usize = 8 * 1024 * 1024;
+ // Enforce a maximum encoded plan size (256 KiB).
+ // This is based on a maximum of 4096 entries at 64 bytes per entry.
619
+ const MAX_PLAN_BYTES: usize = 256 * 1024;
620
if cbor_plan_len > MAX_PLAN_BYTES {
621
set_reservation_error_message_out(
622
error_msg_ptr_out,
0 commit comments