Description of problem: Debian team issued an ImageMagick update DSA-1213-1 where they reportedly fixed an issue in SGI image handling routine. See their Changelog entry: * Fix insufficient boundary checks in SGIDecode() (discovered by Daniel Kobras) And excerpt from their advisory: Daniel Kobras discovered that Imagemagick is vulnerable to buffer overflows in the module for SGI images. Version-Release number of selected component (if applicable): RHEL2.1-RHEL4, FC5, FC6 Additional info: I attach relevant part of the debian patch. Please have a look at it.
Created attachment 142305 [details] Part that fixes CVE-2006-5868 issue, from debian
For the second hunk in this I think the for loop should be initializing i otherwise there's a code path which leaves i entirely uninitialzed before being referenced, and in the other case we're not doing all the work we want to... since it could still be the failure of the previous loop.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2007-0015.html