diff options
author | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2008-06-29 10:57:58 +0000 |
---|---|---|
committer | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2008-06-29 10:57:58 +0000 |
commit | d894626f21e3b6fda1520b524b68cfdf3a254770 (patch) | |
tree | e12e36b0b298d792c7cea61a066a94cc1ee28b97 | |
parent | 91e51932db210c139d2ce36986248e8bda78117b (diff) | |
download | pygobject-2-14.tar.gz |
Bug 540696 – gobject.markup_escape_text() causes python to segfaultpygobject-2-14
svn path=/branches/pygobject-2-14/; revision=791
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gobject/gobjectmodule.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2008-06-29 Gustavo J. A. M. Carneiro <gjc@gnome.org> + + * gobject/gobjectmodule.c (pyg_markup_escape_text): text_size + should be Py_ssize_t instead of int. + Bug 540696 – gobject.markup_escape_text() causes python to segfault. + === 2.14.2 === 2008-05-23 Johan Dahlin <jdahlin@async.com.br> diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index 9d304493..423f5ff6 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -2564,7 +2564,7 @@ pyg_markup_escape_text(PyObject *unused, PyObject *args, PyObject *kwargs) { 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, |