From: Scott Olson Date: Mon, 13 Jun 2016 02:42:08 +0000 (-0600) Subject: Fix bug in relocation ranges. X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=c149595ebbc7393a19b976097f68ae7e9a943c97;p=rust.git Fix bug in relocation ranges. --- diff --git a/src/memory.rs b/src/memory.rs index ab527a47c0b..be47e9c9da7 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -357,7 +357,7 @@ fn relocations(&self, ptr: Pointer, size: usize) -> EvalResult> { 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))) }