summaryrefslogtreecommitdiff
path: root/graphics/gdk-pixbuf
diff options
context:
space:
mode:
authorcube <cube@pkgsrc.org>2005-01-15 00:10:41 +0000
committercube <cube@pkgsrc.org>2005-01-15 00:10:41 +0000
commit5c2532320ecbdc275669cd6d08de059b1fa73309 (patch)
tree33e015d58879b7713df2c8a63112909e52fe304c /graphics/gdk-pixbuf
parent4085e4f46d845d1ee5c909ca20381d1bd244df4d (diff)
downloadpkgsrc-5c2532320ecbdc275669cd6d08de059b1fa73309.tar.gz
Fix a long-standing bug in io-gif.c. It remained unnoticed until Georg
Schwarz tried to compile it with a compiler that errors out when the code does something as pointless as checking if a pointer is positive. PR#28889 and http://bugzilla.gnome.org/show_bug.cgi?id=156186
Diffstat (limited to 'graphics/gdk-pixbuf')
-rw-r--r--graphics/gdk-pixbuf/distinfo3
-rw-r--r--graphics/gdk-pixbuf/patches/patch-af13
2 files changed, 15 insertions, 1 deletions
diff --git a/graphics/gdk-pixbuf/distinfo b/graphics/gdk-pixbuf/distinfo
index 542dd37e101..6dad1562ac8 100644
--- a/graphics/gdk-pixbuf/distinfo
+++ b/graphics/gdk-pixbuf/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2003/01/15 21:03:25 wiz Exp $
+$NetBSD: distinfo,v 1.13 2005/01/15 00:10:41 cube Exp $
SHA1 (gdk-pixbuf-0.22.0.tar.bz2) = 495324afb5abebc14567ffd5a6cd72333bcc7f5b
Size (gdk-pixbuf-0.22.0.tar.bz2) = 398208 bytes
@@ -7,3 +7,4 @@ SHA1 (patch-ab) = 2edd8fdd72d5dfaecc92974c6930e5d175e3b69f
SHA1 (patch-ac) = 16fc33898fc1cb10b3e11ee26e7ea046d1f68032
SHA1 (patch-ad) = 5c834eceaea7cef2ae964bba586c1e90ea4d0684
SHA1 (patch-ae) = 515ae7a1946db5b8959287f0db101d64a97ab628
+SHA1 (patch-af) = af8bf66d1cc445bdf7affaa119fd4c24e96e53c7
diff --git a/graphics/gdk-pixbuf/patches/patch-af b/graphics/gdk-pixbuf/patches/patch-af
new file mode 100644
index 00000000000..a7b7ec64a99
--- /dev/null
+++ b/graphics/gdk-pixbuf/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2005/01/15 00:10:41 cube Exp $
+
+--- gdk-pixbuf/io-gif.c.orig 2002-12-18 19:49:01.000000000 +0000
++++ gdk-pixbuf/io-gif.c
+@@ -617,7 +617,7 @@ clip_frame (GifContext *context, int *x,
+ *w = MIN (context->width, context->x_offset + context->frame_len) - *x;
+ *h = MIN (context->height, context->y_offset + context->frame_height) - *y;
+
+- if (w > 0 && h > 0)
++ if (*w > 0 && *h > 0)
+ return;
+
+ /* The frame is completely off-bounds */