Skip to content

PNM file incorrectly decoded as TGA #744

@afeinman-snap

Description

@afeinman-snap

I have a PNM file that is reliably attempted to decode as TGA. At the end decode fails because RLE reader is trying to read past the file boundary, which is not surprising this file not in fact being a TGA file. The entire format guessing mechanism seems to be not very reliable. It probably should be using libmagic which is supported and standardized.

Package version 4.5.4
Offending file: attached

img0000_4.zip

If you can suggest a workaround, it would also be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions