Integer overflow in MagickCore/profile.c in ImageMagick before 7.0.2-1 allows remote attackers to cause a denial of service (segmentation fault) or possibly execute arbitrary code via vectors involving the offset variable.
https://github.com/ImageMagick/ImageMagick/commits/7.0.2-1
https://github.com/ImageMagick/ImageMagick/commit/d8ab7f046587f2e9f734b687ba7e6e10147c294b
http://www.securityfocus.com/bid/91394
http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html