1
Fork 0

Fix bug in relocation ranges.

This commit is contained in:
Scott Olson 2016-06-12 20:42:08 -06:00
parent b1c6219560
commit c149595ebb

View file

@ -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)))
}