openbsd-ports/devel/glib2/patches/patch-gio_gfile_c
ajacoutot 28827aac69 - bugfix release to glib2-2.18.4
thanks to Benoit Lecocq for amd64 testing
2009-01-11 17:06:26 +00:00

17 lines
488 B
Plaintext

$OpenBSD: patch-gio_gfile_c,v 1.2 2009/01/11 17:06:26 ajacoutot Exp $
Lower bufer size to prevent memory access issues.
See GNOME bugzilla #561939.
--- gio/gfile.c.orig Fri Jan 9 07:01:02 2009
+++ gio/gfile.c Sat Jan 10 12:13:16 2009
@@ -2195,7 +2195,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;