bmp: reject input with invalid palette index Do not decode a paletted BMP with an out-of-range palette reference. Avoids a panic when accessing pixels in the invalid image. Fixes golang/go#79576 Fixes CVE-2026-42500 Change-Id: I343deae3a777e91fd4003f04eeda929e6a6a6964 Reviewed-on: https://go-review.googlesource.com/c/image/+/781500 Auto-Submit: Gopher Robot <gobot@golang.org> Reviewed-by: Roland Shoemaker <roland@golang.org> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Neal Patel <nealpatel@google.com>
This repository holds supplementary Go image packages.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/image.
The main issue tracker for the image repository is located at https://go.dev/issues. Prefix your issue with “x/image:” in the subject line, so it is easy to find.