You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add asserts for values length in MemPadder init APIs (#1053)
Enforce documented preconditions in MemPadder::new_mem_records and
MemPadder::init_mem_records.
Prevent silent truncation from zip when values exceeds capacity.
Assert values.len() <= padded_len and padded_len <=
address_range.iter_addresses().len() for new_mem_records.
Assert values.len() <= records.len() for init_mem_records.
Aligns runtime behavior with doc “Require:” clauses and project style of
asserting invariants
Co-authored-by: Ming <[email protected]>
0 commit comments