Skip to content

endless loop in ReadCAPTIONImage #771

Closed
@noirfate

Description

@noirfate

Version: ImageMagick 7.0.7-3 x86-64

I add a crafted font in ~/.config/ImageMagick/type.xml

 format="ttf"
 name="test"
 fullname="test font"
 family="URW Gothic"
 glyphs="/root/test.ttf"

and then run

magick -background lightblue -fill blue -font test -size 480x360 caption:'hello world' 1.gif

magick will always occupy 100% CPU. After I took a look, it maybe enter a endless loop in ReadCAPTIONImage.

you can get the font from https://github.com/noirfate/test/blob/master/test.ttf

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions