Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Remove unnecessary replay binary memory size check in JIT validator #171

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions arbitrator/jit/src/wavmio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ fn inbox_message_impl(sp: &mut GoStack, inbox: &Inbox, name: &str) -> MaybeEscap
None => error!("missing inbox message {msg_num} in {name}"),
};

if out_ptr + 32 > sp.memory_size() {
error!("unknown message type in {name}");
}
let offset = match u32::try_from(offset) {
Ok(offset) => offset as usize,
Err(_) => error!("bad offset {offset} in {name}"),
Expand Down
Loading