commit | c01537f742c3d2591016ef29bb20e3a26482be78 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Fri Oct 15 16:26:08 2010 +0000 |
committer | Georg Brandl <georg@python.org> | Fri Oct 15 16:26:08 2010 +0000 |
tree | 8bfbae8edc301dd336c4f856cc030b33f895e040 | |
parent | 6c6a4d02491124453d305262e53e8e6d71a9158b [diff] |
#9054: fix crash when using pyexpat with a system expat lib version 2.0.1.
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index a8b0f8f..5aadcc0 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c
@@ -351,6 +351,9 @@ PyObject *args; PyObject *temp; + if (!have_handler(self, CharacterData)) + return -1; + args = PyTuple_New(1); if (args == NULL) return -1;