diff options
author | cube <cube> | 2005-01-15 00:10:41 +0000 |
---|---|---|
committer | cube <cube> | 2005-01-15 00:10:41 +0000 |
commit | 735791d9a65defb9a4c1f716cfa75245e8f17200 (patch) | |
tree | 33e015d58879b7713df2c8a63112909e52fe304c | |
parent | 26b1882a4fe631536b05468d0626d2064b81755b (diff) | |
download | pkgsrc-735791d9a65defb9a4c1f716cfa75245e8f17200.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
-rw-r--r-- | graphics/gdk-pixbuf/distinfo | 3 | ||||
-rw-r--r-- | graphics/gdk-pixbuf/patches/patch-af | 13 |
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 */ |