]> Cypherpunks repositories - gostls13.git/commit
debug/macho: don't crash if dynamic symtab with no symtab
authorIan Lance Taylor <iant@golang.org>
Wed, 22 Feb 2023 21:00:14 +0000 (13:00 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 22 Feb 2023 23:19:29 +0000 (23:19 +0000)
commite7cfcda67d430a6e3cf4e8dfef27416870a2b007
treeaace311ed4eef4a1b19d35433873df1b375dec97
parent06b67591e7861d813e94fa76434af9c778d81cf5
debug/macho: don't crash if dynamic symtab with no symtab

No test case because the problem can only happen for invalid data. Let
the fuzzer find cases like this.

For #47653
Fixes #58642

Change-Id: I19fee0dc9bd6239b520c15182b8f1e57bb0049bb
Reviewed-on: https://go-review.googlesource.com/c/go/+/470397
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/debug/macho/file.go