No header sanity checking in ICODecoder
nagisa opened this issue · 1 comments
nagisa commented
Following base64-encoded ico makes the decoder cause a OOM condition:
AAABAAEAIP//////////EAAAFgAAACgAAABAAAAgEAAAAAEAAQAAAAAAAAAAAAEAAAEAAAAAAAAA
AAAAAAAAAAAB//////8A
This is what file
says: MS Windows icon resource - 1 icon, 32x255, 255 colors, 65535 planes, 65535 bits/pixel
Both GIMP and eog handled the file fine by figuring out the file is invalid.