You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
x/image/webp: VP8L chunk dimension validation comes too late #80063
Consider a WEBP image containing a VP8X chunk giving one set of dimensions, followed by a VP8L chunk with a different set of dimensions.
DecodeConfig reports the dimensions from the VP8X chunk.
Decoding will decode the VP8L chunk, detect the mismatch, and return an error. However, this error is only reported after allocating memory for the VP8L chunk. At the maximum VP8L chunk size (16384x16384), that's a 1GiB transient allocation.
Activity
gopherbot commentedon Jun 18, 2026
Change https://go.dev/cl/792240 mentions this issue:
webp: check for VP8L dimension mismatch before allocationgabyhelp commentedon Jun 18, 2026
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
webp: check for VP8L dimension mismatch before allocation