Page 1 of 1

Memory allocation failed on ICO

Posted: 2016-05-19T05:22:58-07:00
by verstoff
Hello.
CLI convert, identify, load from Imagick (php extension) allocate huge amount of ram and throw memory allocation error on this image:
http://xheditor.com/favicon.ico

Version: ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05

Code: Select all

2016-05-19T17:47:41+06:00 0:00.010 0.000u 6.8.9 Exception identify[1500]: colormap.c/AcquireImageColormap/136/Exception
  memory allocation failed `fav'
2016-05-19T17:47:41+06:00 0:00.010 0.000u 6.8.9 Exception identify[1500]: icon.c/ReadICONImage/439/Exception
  memory allocation failed `fav'
2016-05-19T17:47:41+06:00 0:00.010 0.000u 6.8.9 Resource identify[1500]: resource.c/RelinquishMagickResource/862/Resource
  Map: 1.15KB/0B/3.9264GiB
2016-05-19T17:47:41+06:00 0:00.010 0.000u 6.8.9 Cache identify[1500]: cache.c/DestroyPixelCache/965/Cache
  destroy
identify: memory allocation failed `fav' @ error/icon.c/ReadICONImage/439.

Re: Memory allocation failed on ICO

Posted: 2016-05-19T06:16:58-07:00
by snibgo
The file seems to be corrupt. exiftool reports:

Code: Select all

Error                           : Unknown file type