Description of Problem:
identify and convert fail to process GIMP's XCF file format when certain image
attributes are present. Specifically, ImageMagick seems unable to handle images
with layers whose extent is smaller than the image size.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a new image with GIMP.
2. Increase the canvas size dimensions. Do not increase the layer dimensions.
3. Save image with ".xcf" suffix.
4. Try to "identify" the saved file.
Depending on the file, identify/convert will either fail immediately with a
memory allocation failure, or hang forever with 100% CPU utilization. Example of
memory failure message:
convert: Memory allocation failed (identify_bug_1.xcf) [No such file or
convert: Missing an image file name.
Relatively fast identification of the image file type.
The Nautilus browser shell uses convert to display file icons, and when convert
encounters a difficult XCF, the shell gets stuck.
Created attachment 88526 [details]
GIMP XCF; one layer 10 x 10 pixels; image extent 10 x 20 pixels
Created attachment 88527 [details]
GIMP XCF; one layer 361 x 433 pixels; image extent 361 x 463 pixels
About the two attachments:
$ identify identify_bug_1.xcf
identify: Memory allocation failed (identify_bug_1.xcf) [No such file or directory].
identify: Missing an image file name.
$ identify identify_bug_2.xcf
Please try to reproduce this against a supported release and reopen if you can.