High CPU on 8 byte file (CIN) - f4d87e8b

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
JodieC
Posts: 82
Joined: 2014-10-03T21:38:50-07:00
Authentication code: 6789

High CPU on 8 byte file (CIN) - f4d87e8b

Post by JodieC »

Hi IM Team,

This one is a little different, and I had a fun time pinning down where this is coming from.

I was testing this file against the IM6 from SVN 20141227 and found that this 8 byte file, or ones like it, would use up 15-30 seconds of CPU time.
https://www.dropbox.com/s/z1e0z3k41ewjmw1/f4d87e8b?dl=0

Running valgrind seems to point to blob.c and show that it's spending most of its time in ReadBlobByte.
22 seconds was in ReadCINImage and 17 of that was in ReadBlobByte.


System Details:
AMD64
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty

Found with American Fuzzy Lop ( http://lcamtuf.coredump.cx/afl/ )
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: High CPU on 8 byte file (CIN) - f4d87e8b

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.9.0-3 Beta, available by sometime tomorrow. Thanks.
Post Reply