Decoding a paletted BMP file with an out-of-range palette index
would result in a panic when accessing pixels in the invalid image.
Decoding now correctly returns an error in this case.
This is CVE-2026-42500 and Go issue https://go.dev/issue/79576.
This was a PRIVATE track issue, tracked in http://b/502107374.
Decoding a paletted BMP file with an out-of-range palette index
would result in a panic when accessing pixels in the invalid image.
Decoding now correctly returns an error in this case.
This is CVE-2026-42500 and Go issue https://go.dev/issue/79576.
This was a PRIVATE track issue, tracked in http://b/502107374.