1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

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
This commit is contained in:
Joe Marcus Clarke 2008-06-29 23:23:32 +00:00
parent a8cf6c28cf
commit 53bfb7079e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=215998
2 changed files with 12 additions and 1 deletions

View File

@ -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/}

View File

@ -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,