SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View 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;