openbsd-ports/devel/glib2/patches/patch-gio_gfile_c
ajacoutot 08d4aaca8c - use same workaround as for gtk+2: lower buffer size to prevent memory
access issues.

This should at least fix the nautilus copy bug as well as
gnome-screenshot.

ok jasper@
2008-12-21 14:02:39 +00:00

17 lines
488 B
Plaintext

$OpenBSD: patch-gio_gfile_c,v 1.1 2008/12/21 14:02:40 ajacoutot Exp $
Lower bufer size to prevent memory access issues.
See GNOME bugzilla #561939.
--- gio/gfile.c.orig Sat Dec 20 21:45:00 2008
+++ gio/gfile.c Sat Dec 20 21:45:17 2008
@@ -2194,7 +2194,7 @@ copy_stream_with_progress (GInputStream *in,
{
gssize n_read, n_written;
goffset current_size;
- char buffer[1024*64], *p;
+ char buffer[1024*4], *p;
gboolean res;
goffset total_size;
GFileInfo *info;