Subject: bug#9335: 24.0.50; Some animated gifs segfault Emacs

From: Andy Moreton <[email-masked]>
Date: Sun, 21 Aug 2011 16:59:09 +0100

On Sat 20 Aug 2011, Lars Magne Ingebrigtsen wrote:

> Starting program: /home/larsi/src/emacs/trunk/src/emacs 
> [Thread debugging using libthread_db enabled]
>
> A few images, like the following, sometimes segfault Emacs 24:
>
> http://chzichcafterdark.files.wordpress.com/2011/08/funny-pictures-excuse-me.gif
>
> Program received signal SIGSEGV, Segmentation fault.
> gif_load (f=<value optimized out>, img=0x3389ea0) at image.c:7360
> 7360                    int c = raster[y * image_width + x];

I see crashes on Win32 with a very similar backtrace.

> It isn't 100% repeatable -- with this image, it seems to happen every
> third time I start Emacs.    

This image realiably crashes emacs-24 for me:

http://en.wikipedia.org/wiki/File:Clock.gif

    AndyM