]> Cypherpunks repositories - gostls13.git/commit
go/internal/gcimporter: use saferio to read indexed data
authorIan Lance Taylor <iant@golang.org>
Tue, 12 Jul 2022 01:50:03 +0000 (18:50 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 19 Aug 2022 21:29:17 +0000 (21:29 +0000)
commit375a80c9ef521404f1d972ad82719f90bc3a019f
treefa323604a2856f60bd87740fee1478a8ec347aff
parent1c4a80377580a05b9c3f1cccb66baefc01383352
go/internal/gcimporter: use saferio to read indexed 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 #53787

Change-Id: I1b75a4c000b8d1112110309ec44b0ba9b4638d71
Reviewed-on: https://go-review.googlesource.com/c/go/+/416861
Auto-Submit: Ian Lance Taylor <iant@google.com>
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: Dan Kortschak <dan@kortschak.io>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/go/internal/gcimporter/iimport.go