imlib2 before 1.4.2 allows context-dependent attackers to have an unspecified impact via a crafted (1) ARGB, (2) BMP, (3) JPEG, (4) LBM, (5) PNM, (6) TGA, or (7) XPM file, related to "several heap and stack based buffer overflows - partly due to integer overflows."
https://exchange.xforce.ibmcloud.com/vulnerabilities/46037
http://www.vupen.com/english/advisories/2010/0803
http://www.vupen.com/english/advisories/2008/2898
http://www.securityfocus.com/bid/31880
http://www.debian.org/security/2010/dsa-2029
http://sourceforge.net/project/shownotes.php?release_id=634778
http://secunia.com/advisories/39340