[AC21.4] Fix crash in PNG initialiation [was: can't move cursor ...]
Vin Shelton
acs at alumni.princeton.edu
Thu Aug 23 16:49:38 EDT 2007
APPROVE COMMIT 21.4
Thanks for the patch, Stephen.
It has been committed to the 21.4 branch and will appear in 21.4.21.
- Vin
On 2/21/07, Stephen J. Turnbull <stephen at xemacs.org> wrote:
> 21.5 APPROVE COMMIT
>
> Stephen J. Turnbull writes:
>
> > OK, yes, this is really ugly. (But then, when isn't a setjmp/longjmp
> > ugly?) I think the attached patch should fix the problem, but I don't
> > yet have a test case and I've never patched code involving setjmp/
> > longjmp before so a second opinion would be welcome (and a third...).
> > (I think the relevant test case for the original bug can be easily
> > constructed by substituting "You're going down, sucker!" for
> > PNG_LIBPNG_VER_STRING, but I haven't done that yet.)
>
> I still need to do this, but
>
> > I'll run with it a while before committing, but would really
> > appreciate comments.
>
> I've run, I've pulled in a bunch of PNGs including some that our PNG
> library doesn't like, with no trouble yet.
>
> > 2007-02-17 Stephen J. Turnbull <stephen at xemacs.org>
> >
> > * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
> > (png_instantiate): Initialize setjmp_buffer early, and avoid
> > recursive entry to error handler.
>
> _______________________________________________
> XEmacs-Beta mailing list
> XEmacs-Beta at xemacs.org
> http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
>
>
--
The Journey by Mary Oliver
http://www.poemhunter.com/p/m/poem.asp?poet=6771&poem=30506
More information about the XEmacs-Patches
mailing list