]> Cypherpunks repositories - gostls13.git/commit
internal/saferio: new package to avoid OOM
authorIan Lance Taylor <iant@golang.org>
Sun, 29 May 2022 00:46:38 +0000 (17:46 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 11 Aug 2022 20:05:25 +0000 (20:05 +0000)
commit141f15303d528620a8855fd73d19fe51dd2479f0
tree717530760ec9fc1839404d9b5d43839c62ef9cd6
parent527565b1f1997f05d9902d30118a0d6003674b66
internal/saferio: new package to avoid OOM

Broken out of debug/pe. Update debug/pe to use it.

For #47653

Change-Id: Ib3037ee04073e005c4b435d0128b8437a075b00a
Reviewed-on: https://go-review.googlesource.com/c/go/+/408678
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dan Kortschak <dan@kortschak.io>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/cmd/dist/buildtool.go
src/debug/pe/string.go
src/go/build/deps_test.go
src/internal/saferio/io.go [new file with mode: 0644]
src/internal/saferio/io_test.go [new file with mode: 0644]