]> Cypherpunks repositories - gostls13.git/commit
image: add a security considerations section to package doc
authorRoland Shoemaker <roland@golang.org>
Tue, 29 Aug 2023 01:13:29 +0000 (18:13 -0700)
committerRoland Shoemaker <roland@golang.org>
Tue, 29 Aug 2023 16:16:05 +0000 (16:16 +0000)
commit4e48e46791ba5d9699b0b07cf6c8ca6b05d59e76
tree46466e70cce758279de89d436a05a900822b3f31
parent2efebf3ee0796054942a49d0f8b1c2c50193c7fe
image: add a security considerations section to package doc

Internally the security model for the image package has always been,
if you don't call DecodeConfig before Decode, you cannot complain if
Decode attempts to create an arbitrarily large image (with the
assumption that DecodeConfig would've told you this information). This
should be explicitly documented.

Change-Id: I5c37b91131d6352637e725fe415f37a28f12f66d
Reviewed-on: https://go-review.googlesource.com/c/go/+/523578
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/image/image.go