From a236fb7a26e4bc419250e9b53143f82da389c173 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 21 Jan 2007 17:27:23 +0000 Subject: [PATCH] Fix error reporting in the gif loader svn path=/trunk/; revision=17197 --- gdk-pixbuf/ChangeLog | 6 ++++++ gdk-pixbuf/io-gif.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 9722d53afe..8cc0e71018 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,9 @@ +2007-01-21 Matthias Clasen + + * io-gif.c (gdk_pixbuf__gif_image_stop_load): Return an + error if we didn't successfully load a frame. (#394190, + Felix Riemann) + 2007-01-17 Michael Natterer Patch taken from maemo-gtk: diff --git a/gdk-pixbuf/io-gif.c b/gdk-pixbuf/io-gif.c index 5459424b14..491f9cdc80 100644 --- a/gdk-pixbuf/io-gif.c +++ b/gdk-pixbuf/io-gif.c @@ -1526,7 +1526,7 @@ gdk_pixbuf__gif_image_stop_load (gpointer data, GError **error) GifContext *context = (GifContext *) data; gboolean retval = TRUE; - if (context->state != GIF_DONE) { + if (context->state != GIF_DONE || context->animation->frames == NULL) { g_set_error (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_CORRUPT_IMAGE,