image/png: makeslice: len out of range in Decode with insane image size #54586
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?
Run https://go.dev/play/p/JNfieKSukyI?v=gotip
What did you expect to see?
The program finishing and printing Hello with an appropriate error
What did you see instead?
Found by https://github.com/catenacyber/ngolo-fuzzing on oss-fuzz
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50234
I know that the result of DecodeConfig should be checked before calling Decode, but I think that in this case, the error should be a bit nicer
The text was updated successfully, but these errors were encountered: