File gdk-pixbuf-loop.diff of Package gdk-pixbuf

Index: gdk-pixbuf-0.22.0/gdk-pixbuf/io-xpm.c
===================================================================
--- gdk-pixbuf-0.22.0.orig/gdk-pixbuf/io-xpm.c
+++ gdk-pixbuf-0.22.0/gdk-pixbuf/io-xpm.c
@@ -287,7 +287,8 @@ file_buffer (enum buf_op op, gpointer ha
 		/* Fall through to the xpm_read_string. */
 
 	case op_body:
-		xpm_read_string (h->infile, &h->buffer, &h->buffer_size);
+		if(!xpm_read_string (h->infile, &h->buffer, &h->buffer_size))
+			return NULL;
 		return h->buffer;
 
 	default:
openSUSE Build Service is sponsored by