Skip to content
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
5 changes: 3 additions & 2 deletions third-party/wasmi/crates/wasmi/src/tracer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ impl Tracer {
.max();

// Truncate to the largest 8-byte chunk that can accommodate the used highest address.
let new_len = highest_address.map_or(0, |addr| (addr / 7) + 1);

let new_len = highest_address.map_or(0, |addr| (addr / 8) + 1);
// Add an extra slot because reads and writes also access the next chunk (Q)
let new_len = new_len + 1;
self.IS_mem.truncate(new_len as usize);

self.execution_trace
Expand Down
Loading