go/src/debug
Roland Shoemaker 61536ec030 debug/macho: fail on invalid dynamic symbol table command
Fail out when loading a file that contains a dynamic symbol table
command that indicates a larger number of symbols than exist in the
loaded symbol table.

Thanks to Burak Çarıkçı - Yunus Yıldırım (CT-Zer0 Crypttech) for
reporting this issue.

Fixes #48990
Fixes CVE-2021-41771

Change-Id: Ic3d6e6529241afcc959544b326b21b663262bad5
Reviewed-on: https://go-review.googlesource.com/c/go/+/355990
Reviewed-by: Julie Qiu <julie@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Run-TryBot: Roland Shoemaker <roland@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Katie Hockman <katie@golang.org>
2021-10-28 15:55:26 +00:00
..
buildinfo debug/buildinfo: fix test for build settings 2021-10-14 23:32:09 +00:00
dwarf debug/dwarf: check for DWARFv4 AttrDataBitOffset value 2021-09-02 19:56:24 +00:00
elf debug/elf: retain original error message when getSymbols fails. 2021-09-10 17:13:40 +00:00
gosym cmd/compile: adjust debug/gosym to deal with instantiated types/funcs/methods 2021-10-11 20:46:14 +00:00
macho debug/macho: fail on invalid dynamic symbol table command 2021-10-28 15:55:26 +00:00
pe all: do not test internal linking on windows/arm64 2021-04-23 21:48:37 +00:00
plan9obj