summaryrefslogtreecommitdiff
path: root/graphics/gdk-pixbuf2/patches/patch-ag
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/gdk-pixbuf2/patches/patch-ag')
-rw-r--r--graphics/gdk-pixbuf2/patches/patch-ag41
1 files changed, 0 insertions, 41 deletions
diff --git a/graphics/gdk-pixbuf2/patches/patch-ag b/graphics/gdk-pixbuf2/patches/patch-ag
deleted file mode 100644
index 79fcff2da4c..00000000000
--- a/graphics/gdk-pixbuf2/patches/patch-ag
+++ /dev/null
@@ -1,41 +0,0 @@
-$NetBSD: patch-ag,v 1.1 2011/07/08 11:31:24 drochner Exp $
-
-CVE-2011-2485
-
---- gdk-pixbuf/io-gif.c.orig 2010-07-10 00:54:13.000000000 +0000
-+++ gdk-pixbuf/io-gif.c
-@@ -1455,6 +1455,7 @@ gdk_pixbuf__gif_image_load (FILE *file,
- {
- GifContext *context;
- GdkPixbuf *pixbuf;
-+ gint retval;
-
- g_return_val_if_fail (file != NULL, NULL);
-
-@@ -1472,19 +1473,25 @@ gdk_pixbuf__gif_image_load (FILE *file,
- context->error = error;
- context->stop_after_first_frame = TRUE;
-
-- if (gif_main_loop (context) == -1 || context->animation->frames == NULL) {
-+ retval = gif_main_loop (context);
-+ if (retval == -1 || context->animation->frames == NULL) {
- if (context->error && *(context->error) == NULL)
- g_set_error_literal (context->error,
- GDK_PIXBUF_ERROR,
- GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
- _("GIF file was missing some data (perhaps it was truncated somehow?)"));
- }
-+ else if (retval == -2) {
-+ pixbuf = NULL;
-+ goto out;
-+ }
-
- pixbuf = gdk_pixbuf_animation_get_static_image (GDK_PIXBUF_ANIMATION (context->animation));
-
- if (pixbuf)
- g_object_ref (pixbuf);
-
-+out:
- g_object_unref (context->animation);
-
- g_free (context->buf);