|author||Roland Shoemaker <email@example.com>||Thu Dec 15 10:07:49 2022 -0800|
|committer||Gopher Robot <firstname.lastname@example.org>||Tue Feb 14 17:44:59 2023 +0000|
tiff: don't pre-allocate giant slices before reading Use a copy of the standard libraries internal/saferio.ReadDataAt func to create/read slices which have lengths supplied by the header. This avoids allocating giant slices which we then learn there are not enough bytes in the reader to fill. This makes DecodeConfig safe to use to determine if the image is of a reasonable size to call Decode on. This was found by the ngolo-fuzzing project running on OSS-Fuzz and reported by Philippe Antoine (Catena cyber). Fixes golang/go#58003 Fixes CVE-2022-41727 Change-Id: Iae53f78b840f3b8dbeab37fba8c0164054cbb4ed Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1680712 Reviewed-by: Damien Neil <email@example.com> TryBot-Result: Security TryBots <firstname.lastname@example.org> Run-TryBot: Roland Shoemaker <email@example.com> Reviewed-by: Julie Qiu <firstname.lastname@example.org> Reviewed-on: https://go-review.googlesource.com/c/image/+/468195 Auto-Submit: Roland Shoemaker <email@example.com> Run-TryBot: Roland Shoemaker <firstname.lastname@example.org> TryBot-Result: Gopher Robot <email@example.com>
This repository holds supplementary Go image libraries.
The easiest way to install is to run
go get -u golang.org/x/image/.... You can also manually git clone the repository to
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the image repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/image:” in the subject line, so it is easy to find.