]> Cypherpunks.ru repositories - gostls13.git/commit
debug/pe: use saferio to set symbol slice capacity
authorIan Lance Taylor <iant@golang.org>
Fri, 24 Jun 2022 17:24:11 +0000 (10:24 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 18 Aug 2022 16:14:23 +0000 (16:14 +0000)
commit760c180d3bb2464b1e91402630c8f0d1e79180b3
tree80d4cf24a2b5f2371bbe5eacc108ebfbcb11c9c7
parent924f526277c4deecfeb3ff3b48095126d1bb520e
debug/pe: use saferio to set symbol slice capacity

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

For #47653
Fixes #53530

Change-Id: If1cebbbcabb188fec8be30ef043c8c4c935a9564
Reviewed-on: https://go-review.googlesource.com/c/go/+/413995
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/debug/pe/symbol.go