aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2008-06-30 07:23:32 +0800
committermarcus <marcus@FreeBSD.org>2008-06-30 07:23:32 +0800
commit9ba6d8e91d93208c81d28d09424e5092f853f5b7 (patch)
treeed231623d34ccc70dd915d5f68ea0903986fac7d /devel
parentf2984693955d1114ef30252bbc8bb60a1c362f97 (diff)
downloadfreebsd-ports-gnome-9ba6d8e91d93208c81d28d09424e5092f853f5b7.tar.gz
freebsd-ports-gnome-9ba6d8e91d93208c81d28d09424e5092f853f5b7.tar.zst
freebsd-ports-gnome-9ba6d8e91d93208c81d28d09424e5092f853f5b7.zip
Fix an argument size problem which led to a crash on 64-bit OSes.
Reported by: Ashish Shukla आशीष शुक्ल <wahjava.ml@gmail.com> Obtained from: http://bugzilla.gnome.org/show_bug.cgi?id=540696
Diffstat (limited to 'devel')
-rw-r--r--devel/py-gobject/Makefile2
-rw-r--r--devel/py-gobject/files/patch-gobject_gobjectmodule.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/devel/py-gobject/Makefile b/devel/py-gobject/Makefile
index b06c16cd53eb..5f28790d4617 100644
--- a/devel/py-gobject/Makefile
+++ b/devel/py-gobject/Makefile
@@ -8,7 +8,7 @@
PORTNAME= gobject
PORTVERSION= 2.14.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/pygobject/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
diff --git a/devel/py-gobject/files/patch-gobject_gobjectmodule.c b/devel/py-gobject/files/patch-gobject_gobjectmodule.c
new file mode 100644
index 000000000000..1cc2885a21da
--- /dev/null
+++ b/devel/py-gobject/files/patch-gobject_gobjectmodule.c
@@ -0,0 +1,11 @@
+--- gobject/gobjectmodule.c.orig 2008-06-29 19:20:31.000000000 -0400
++++ gobject/gobjectmodule.c 2008-06-29 19:21:16.000000000 -0400
+@@ -2564,7 +2564,7 @@ pyg_markup_escape_text(PyObject *unused,
+ {
+ static char *kwlist[] = { "text", NULL };
+ char *text_in, *text_out;
+- int text_size;
++ Py_ssize_t text_size;
+ PyObject *retval;
+
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs,