aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/testdata/testprogcgo/stackswitch.c
diff options
context:
space:
mode:
authorCherry Mui <cherryyz@google.com>2023-09-12 13:52:42 -0400
committerCherry Mui <cherryyz@google.com>2023-09-12 18:14:29 +0000
commit5cc1e99f94be59a65ba291e06af6afec7a978427 (patch)
tree52c51da59569b371433f34fbb1b9f5cff25f14db /src/runtime/testdata/testprogcgo/stackswitch.c
parent9f5a2cf61cc0c2389c577a00b5914235236d6c7f (diff)
downloadgo-5cc1e99f94be59a65ba291e06af6afec7a978427.tar.xz
runtime: fix off-by-1 error in textOff
The code meant to check if it is the last section, which is i === len(md.textsectmap)-1. The -1 was missing. Change-Id: Ifbb9e40df730abe3bec20fde5f56f5c75dfd9e8f Reviewed-on: https://go-review.googlesource.com/c/go/+/527795 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/runtime/testdata/testprogcgo/stackswitch.c')
0 files changed, 0 insertions, 0 deletions