mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
Fix bug in relocation ranges.
This commit is contained in:
+1
-1
@@ -357,7 +357,7 @@ fn relocations(&self, ptr: Pointer, size: usize)
|
||||
-> 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)))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user