libpng error handlers must not return to their callers, thus longjmp out.

* io-png.c (png_simple_error_callback): libpng error handlers must
	not return to their callers, thus longjmp out. This prevents
	annoying stderr output from the default error handler.
This commit is contained in:
Matthias Clasen 2002-03-29 21:40:01 +00:00
parent 835094b105
commit 5c16742258
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2002-03-29 Matthias Clasen <maclas@gmx.de>
* io-png.c (png_simple_error_callback): libpng error handlers must
not return to their callers, thus longjmp out. This prevents
annoying stderr output from the default error handler.
2002-03-27 Matthias Clasen <maclas@gmx.de>
* io-png.c (gdk_pixbuf__png_image_stop_load): Don't leak info_ptr.

View File

@ -183,6 +183,8 @@ png_simple_error_callback(png_structp png_save_ptr,
_("Fatal error in PNG image file: %s"),
error_msg);
}
longjmp (png_save_ptr->jmpbuf, 1);
}
static void