Fix stack corruption due to incorrect format for argument parser.
from upstream
This commit is contained in:
parent
541a25fae3
commit
de1730826e
@ -1,10 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.17 2013/03/27 17:52:09 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.18 2013/03/31 09:08:38 ajacoutot Exp $
|
||||
|
||||
COMMENT= Python bindings for glib2 gobject
|
||||
|
||||
GNOME_PROJECT= pygobject
|
||||
GNOME_VERSION= 3.8.0
|
||||
MODPY_EGG_VERSION=${GNOME_VERSION}
|
||||
REVISION= 0
|
||||
|
||||
PKGNAME= py-gobject3-${GNOME_VERSION}
|
||||
|
||||
|
24
devel/py-gobject3/patches/patch-gi__gobject_pygflags_c
Normal file
24
devel/py-gobject3/patches/patch-gi__gobject_pygflags_c
Normal file
@ -0,0 +1,24 @@
|
||||
$OpenBSD: patch-gi__gobject_pygflags_c,v 1.1 2013/03/31 09:08:38 ajacoutot Exp $
|
||||
|
||||
From c1fb6516031d3c32abd640f09a4814ae4363f979 Mon Sep 17 00:00:00 2001
|
||||
From: Simon Feltman <sfeltman@src.gnome.org>
|
||||
Date: Sun, 31 Mar 2013 08:32:34 +0000
|
||||
Subject: Fix stack corruption due to incorrect format for argument parser
|
||||
|
||||
--- gi/_gobject/pygflags.c.orig Mon Mar 4 12:44:21 2013
|
||||
+++ gi/_gobject/pygflags.c Sun Mar 31 10:56:39 2013
|
||||
@@ -129,12 +129,12 @@ static PyObject *
|
||||
pyg_flags_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
static char *kwlist[] = { "value", NULL };
|
||||
- guint value;
|
||||
+ gulong value;
|
||||
PyObject *pytc, *values, *ret, *pyint;
|
||||
GType gtype;
|
||||
GFlagsClass *eclass;
|
||||
|
||||
- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "l", kwlist, &value))
|
||||
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "k", kwlist, &value))
|
||||
return NULL;
|
||||
|
||||
pytc = PyObject_GetAttrString((PyObject *)type, "__gtype__");
|
Loading…
x
Reference in New Issue
Block a user