pkgsrc/graphics/gdk-pixbuf/patches/patch-af
cube 5c2532320e 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
2005-01-15 00:10:41 +00:00

13 lines
462 B
Text

$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 */