Skip to content

Commit

Permalink
Remove unnecessary memory size check in JIT validator
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower committed Oct 17, 2023
1 parent 7c8eae8 commit 57cebd8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arbitrator/jit/src/wavmio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ fn inbox_message_impl(sp: &GoStack, inbox: &Inbox, name: &str) -> MaybeEscape {
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

0 comments on commit 57cebd8

Please sign in to comment.