diff options
| author | Than McIntosh <thanm@google.com> | 2022-03-31 07:47:19 -0400 |
|---|---|---|
| committer | Than McIntosh <thanm@google.com> | 2022-04-01 14:08:14 +0000 |
| commit | 1fc3346275d0457cfc154b1001b25bd0cb0c1751 (patch) | |
| tree | 1d642c639508681710cddb3e9fb7b0b0c60e4b86 /src/encoding/binary | |
| parent | 2e8dc8f4725c84d352b718620628a4fb0f86e748 (diff) | |
| download | go-1fc3346275d0457cfc154b1001b25bd0cb0c1751.tar.xz | |
debug/dwarf: better error handling in SeekPC
The dwarf.Reader "SeekPC" method was not properly handling the case
of a truncated/empty unit (something that has header information
but an empty abbrev table and no DIEs). Add some guards to handle
this case.
Fixes #52045.
Change-Id: I978163eca3b610f7528058693b840931e90d3f63
Reviewed-on: https://go-review.googlesource.com/c/go/+/397054
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Than McIntosh <thanm@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/encoding/binary')
0 files changed, 0 insertions, 0 deletions
