]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix off-by-1 error in findShlibSection
authorCherry Zhang <cherryyz@google.com>
Mon, 1 Feb 2021 21:46:49 +0000 (16:46 -0500)
committerCherry Zhang <cherryyz@google.com>
Tue, 2 Feb 2021 15:59:11 +0000 (15:59 +0000)
commit1426a571b79bfcb3c0339e2fd96c893cd1549af6
tree937f1b134458117a1636fa6f42fa00c776d69545
parent32e789f4fb45b6296b9283ab80e126287eab4db5
cmd/link: fix off-by-1 error in findShlibSection

We want to find a section that contains addr. sect.Addr+sect.Size
is the exclusive upper bound.

Change-Id: If2cd6bdd6e03174680e066189b0f4bf9e2ba6630
Reviewed-on: https://go-review.googlesource.com/c/go/+/288592
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/decodesym.go