ImageMagick versions 6.2.8 and below suffer from a heap overflow in ReadSGIImage().
You can download this advisory from the following link: https://packetstormsecurity.com/files/download/49302/imsgiheap.txt
Source: https://packetstormsecurity.com/files/49302/imsgiheap.txt.html