aboutsummaryrefslogtreecommitdiff
path: root/src/debug/pe
diff options
context:
space:
mode:
authorLynn Boger <laboger@linux.vnet.ibm.com>2016-11-09 09:09:37 -0600
committerIan Lance Taylor <iant@golang.org>2016-11-17 04:36:53 +0000
commitb2d34fa51bd509f0aa780151a3d30c5ca77f1f4e (patch)
treefef6e81f2fdcc2af0b603ba16c007ca26396fbbc /src/debug/pe
parenta1235f3179c4dbd6b16963d6b8f932586fa9bc1c (diff)
downloadgo-b2d34fa51bd509f0aa780151a3d30c5ca77f1f4e.tar.xz
runtime: handle bad ftab index in symtab.go
If a program has had its text section split into multiple sections then the ftab that is built is based on addresses prior to splitting. That means all the function addresses are there and correct because of relocation but the but the computed idx won't always match up quite right and in some cases go beyond the end of the table, causing a panic. To resolve this, determine if the idx is too large and if it is, set it to the last index in ftab. Then search backward to find the matching function address. Fixes #17854 Change-Id: I6940e76a5238727b0a9ac23dc80000996db2579a Reviewed-on: https://go-review.googlesource.com/32972 Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/debug/pe')
0 files changed, 0 insertions, 0 deletions