Robert Pluim writes:
Should we not bail out much earlier when we actually read in the gif
(and silently)?
For now, issue822.
XEmacs knows nothing about GIF (any more; 21.4 does use an ancient
giflib which is included as source in our distribution, but I am
certainly not willing to learn enough about GIF and that code to fix
it -- patches welcome, of course). I have read the emacs-devel
thread, and will take a look at better handling of errors from
DGifSlurp as cyd mentions, but I don't know yet if we use that or a
higher-level function.
If you have an alternative suggestion for how to recognize broken GIF
files without reimplementing the GIF decoding process, I'd be willing
to investigate that.
One possibility would be to revive the ImageMagick/GraphicsMagick
strategy of linking to one of the omnibus image-handling packages, but
that's pretty expensive compared to waiting for a fix from libgif.
BTW, this looks similar to
http://list-archive.xemacs.org/pipermail/xemacs-beta/2010-August/019895.html
at least as far as having a very small GIF file involved.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta