Skip to content

Converting some images to PICT results in files that will crash a classic Mac system #7837

Description

@briankendall

ImageMagick version

7.1.1-34

Operating system

MacOS

Operating system, version and so on

macOS 13.6.5

Description

Converting certain images to a PICT file will produce files that will crash the system when attempting to view them on a classic Mac OS system. I've reproduced the crash on Macintosh System 7.1, Mac OS 8, and Mac OS 9.

Converting the PICT file back to a png using ImageMagick does not present any issues. I have not yet identified a modern app that presents a problem viewing the bad PICT file ImageMagick produces.

I've attached both the png file that exhibits this bug and the resulting PICT file that will crash a classic Mac.

Steps to Reproduce

  1. Convert the attached png file to a pict with the following:
    magick bad.png bad.pict
  2. Copy bad.pict to a system running classic Mac OS and open it in any application that can view PICT files (such as SimpleText)
  3. System freezes or displays a system error

Images

bad
bad.pict.zip

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