]> Cypherpunks repositories - gostls13.git/commit
debug/macho: use saferio to read symbol table strings
authorIan Lance Taylor <iant@golang.org>
Tue, 21 Feb 2023 18:14:20 +0000 (10:14 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 21 Feb 2023 23:27:49 +0000 (23:27 +0000)
commited33ae10a011c85f51be2c970f52d769722b0ec7
tree8ae59617f785a63c85dff5d99a0f69929d5b2805
parentdd87e33d88eadaf5302895fb91b0a0e2e16b136e
debug/macho: use saferio to read symbol table strings

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

For #47653
Fixes #58603

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