]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix reading PT_NOTE segment with multiple notes
authorIan Lance Taylor <iant@golang.org>
Wed, 2 Dec 2015 05:16:29 +0000 (21:16 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 2 Dec 2015 17:21:44 +0000 (17:21 +0000)
commitb64b3a771320d95a4c9b8456e8de0e70702a0275
tree329f185bdc194694eb7cfb4bb1352d66f25510c7
parent0ea1c1f6715c6fe33c38b6292ce2bdccaa86f0e2
cmd/go: fix reading PT_NOTE segment with multiple notes

The old code was assuming that a PT_NOTE segment never had more than one
note, but there is no such requirement.

Fixes #13364.

Change-Id: I3f6b3716130bf7af6abe81b8e10571a8c7cd943c
Reviewed-on: https://go-review.googlesource.com/17331
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/note.go
src/cmd/go/note_test.go