libavcodec/gif.c in FFmpeg before 2.8.6 does not properly calculate a buffer size, which allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via a crafted .tga file, related to the gif_image_write_image, gif_encode_init, and gif_encode_close functions.
https://security.gentoo.org/glsa/201606-09
http://www.ubuntu.com/usn/USN-2944-1
http://www.securitytracker.com/id/1035010
http://www.securityfocus.com/bid/84217
http://git.videolan.org/?p=ffmpeg.git%3Ba=commit%3Bh=03d83ba34b2070878909eae18dfac0f519503777