Skip to content

No header sanity checking in ICODecoder #624

@nagisa

Description

@nagisa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions