I got a runtime panic when trying to resize a jpeg image that has 4x1 Chroma Subsampling, aka. image.YCbCrSubsampleRatio411. In ycc.go, it seems the default is 444 if no other sample is matched, which causes an index out of range panic.
I have a reproducible test program and image, if desired.
Friendly ping. This represents a DoS vector when the picture comes from an untrusted source. In my case it is creating a thumbnail from a user uploaded picture.
I got a runtime panic when trying to resize a jpeg image that has 4x1 Chroma Subsampling, aka. image.YCbCrSubsampleRatio411. In ycc.go, it seems the default is 444 if no other sample is matched, which causes an index out of range panic.
I have a reproducible test program and image, if desired.