Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/buildinfo: avoid panic on nil symbol for elf
For very old binaries or binaries built with forks of Go, looking up an elf symbol that does not exists might not return an error, yet just a nil symbol, resulting in a panic. We hence make an additional check. This is also consistent with other binary formats. Change-Id: I488eeca4ada27a0be48c7da82ca7b1391a7ce394 Reviewed-on: https://go-review.googlesource.com/c/vuln/+/585336 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com> Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
- Loading branch information