SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
15
lang/python/2.7/patches/patch-Modules_pyexpat_c
Normal file
15
lang/python/2.7/patches/patch-Modules_pyexpat_c
Normal file
|
@ -0,0 +1,15 @@
|
|||
Index: Modules/pyexpat.c
|
||||
--- Modules/pyexpat.c.orig
|
||||
+++ Modules/pyexpat.c
|
||||
@@ -437,6 +437,11 @@ call_character_handler(xmlparseobject *self, const XML
|
||||
noop_character_data_handler);
|
||||
return -1;
|
||||
}
|
||||
+ if (!have_handler(self, CharacterData)) {
|
||||
+ Py_DECREF(args);
|
||||
+ flag_error(self);
|
||||
+ return -1;
|
||||
+ }
|
||||
PyTuple_SET_ITEM(args, 0, temp);
|
||||
/* temp is now a borrowed reference; consider it unused. */
|
||||
self->in_callback = 1;
|
Loading…
Add table
Add a link
Reference in a new issue