Fix bug in relocation ranges.
This commit is contained in:
parent
b1c6219560
commit
c149595ebb
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ impl Memory {
|
|||
-> EvalResult<btree_map::Range<usize, AllocId>>
|
||||
{
|
||||
let start = ptr.offset.saturating_sub(self.pointer_size - 1);
|
||||
let end = start + size;
|
||||
let end = ptr.offset + size;
|
||||
Ok(self.get(ptr.alloc_id)?.relocations.range(Included(&start), Excluded(&end)))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue