diff options
| author | Nikola Jokic <jokicnikola07@gmail.com> | 2022-12-02 17:42:48 +0100 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-12-12 14:16:49 +0000 |
| commit | c6ad9dc9b523b710afa07d7c5bcb6fe9d21c308c (patch) | |
| tree | 69cae07e17ed3e27feed7a27c6d3dba3111e6fb4 /src/syscall/exec_linux_test.go | |
| parent | 5dca7ed66fd7e46ad371dd5c9655077da57eb9cf (diff) | |
| download | go-c6ad9dc9b523b710afa07d7c5bcb6fe9d21c308c.tar.xz | |
debug/buildinfo: check pointer size on buildinfo.Read
Previous implementation has a check on pointer size but only if ptrSize
is 4. but it does not check on ptrSize 8 causing the panic on read for
some inputs.
The explicit check for pointer size 8 is added and error is returned if
ptrSize is not 4 and not 8.
Fixes #57002
Change-Id: Id51de72bdef4da9955d086bfc2a5d735678ee2ac
Reviewed-on: https://go-review.googlesource.com/c/go/+/454616
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/syscall/exec_linux_test.go')
0 files changed, 0 insertions, 0 deletions
