diff options
| author | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2008-06-29 10:53:41 +0000 |
|---|---|---|
| committer | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2008-06-29 10:53:41 +0000 |
| commit | 3de56b59eff69064778ff1cad37eb373cad2d5c5 (patch) | |
| tree | 288899322339138a6adc90136666d7977cf47d03 | |
| parent | 50f42c6c5171af96394cc1ffe41fcc8269cbc95a (diff) | |
| download | pygobject-3de56b59eff69064778ff1cad37eb373cad2d5c5.tar.gz pygobject-3de56b59eff69064778ff1cad37eb373cad2d5c5.tar.xz pygobject-3de56b59eff69064778ff1cad37eb373cad2d5c5.zip | |
Bug 540696 – gobject.markup_escape_text() causes python to segfault
svn path=/trunk/; revision=790
| -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. + 2008-06-28 Johan Dahlin <jdahlin@async.com.br> * docs/reference/pygobject.xml: diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index d08e38a..ed4d94e 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -2576,7 +2576,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, |
