]> Cypherpunks repositories - gostls13.git/commit
internal/xcoff: use saferio to allocate slices
authorIan Lance Taylor <iant@golang.org>
Mon, 27 Feb 2023 23:30:42 +0000 (15:30 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 28 Feb 2023 18:09:18 +0000 (18:09 +0000)
commit62043a6cd5fa39b29298c9f03beceb65ffe167e0
tree1ced7dfc0b69411de002f6034c37efba005ffca7
parentd61ae9ded4ebc142fb0edccfee893fa10c233357
internal/xcoff: use saferio to allocate slices

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

For #47653
Fixes #58754

Change-Id: Ic3ef58b204b946f8bff80310d4c8dfcbb2939a1c
Reviewed-on: https://go-review.googlesource.com/c/go/+/471678
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/internal/xcoff/file.go