From c149595ebbc7393a19b976097f68ae7e9a943c97 Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Sun, 12 Jun 2016 20:42:08 -0600 Subject: [PATCH] Fix bug in relocation ranges. --- src/memory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) } -- 2.44.0