]> Cypherpunks repositories - gostls13.git/commit
debug/plan9obj: use saferio to read section data
authorIan Lance Taylor <iant@golang.org>
Sat, 25 Jun 2022 22:28:15 +0000 (15:28 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 19 Aug 2022 21:29:13 +0000 (21:29 +0000)
commit1c4a80377580a05b9c3f1cccb66baefc01383352
treec82765f253236f28b92eccfe2e331f34e2ba2681
parent5f0170f9a529c7113ac12f1270e00e5bdc444803
debug/plan9obj: use saferio to read section data

Avoid allocating large amounts of memory for corrupt input.

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

Fixes #52521

Change-Id: I6a046f2e28e1255cf773ce135c5bb2b967ef43e9
Reviewed-on: https://go-review.googlesource.com/c/go/+/414234
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dan Kortschak <dan@kortschak.io>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/debug/plan9obj/file.go