Secunia Research has discovered a vulnerability in imlib2, which can be exploited by malicious people to compromise an application using the library. The vulnerability is caused by a logic error within the “IMAGE_DIMENSIONS_OK()” macro in src/lib/image.h. This can be exploited to cause heap-based buffer overflows via e.g. specially crafted ARGB, XPM, and BMP image files.
You can download this advisory from the following link: https://packetstormsecurity.com/files/download/88777/secunia-imlib2logic.txt
Source: https://packetstormsecurity.com/files/88777/imlib2-IMAGE_DIMENSIONS_OK-Logic-Error.html