x/image/bmp: NewNRGBA will panic when dealing with too large length and width #60885
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Error returned: image size too large
What did you see instead?
I tried to modify it to limit the length of the
decodeNRGBA
function, but it was only roughly completed. Need to know the size ofmaxAlloc
in theruntime
package. This is the fundamental solution to this bugThe text was updated successfully, but these errors were encountered: