From a621034bcf9053c2fa6fd12d57aafe2d75ab0621 Mon Sep 17 00:00:00 2001 From: pjot726 <5233968+pjot726@users.noreply.github.com> Date: Tue, 13 Aug 2019 11:13:56 -0700 Subject: [PATCH] Edited to fix issue #1071 (#1664) --- pkg/proc/core/core.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/proc/core/core.go b/pkg/proc/core/core.go index 85d8e1da..f6ecf6f5 100644 --- a/pkg/proc/core/core.go +++ b/pkg/proc/core/core.go @@ -103,6 +103,9 @@ func (r *SplicedMemory) ReadMemory(buf []byte, addr uintptr) (n int, err error) return n, fmt.Errorf("hit unmapped area at %v after %v bytes", addr, n) } + // The reading of the memory has been started after the first iteration + started = true + // Don't go past the region. pb := buf if addr+uintptr(len(buf)) > entry.offset+entry.length {