Edit

IABSD.fr/ports/lang/python/3.4/patches/patch-Modules_pyexpat_c

Branch :

  • Show log

    Commit

  • Author : rpointel
    Date : 2016-07-03 20:10:33
    Hash : a4515812
    Message : forgotten make update-patches, spotted by danj@. inputs and ok sthen@.

  • lang/python/3.4/patches/patch-Modules_pyexpat_c
  • $OpenBSD: patch-Modules_pyexpat_c,v 1.2 2016/07/03 20:10:33 rpointel Exp $
    --- Modules/pyexpat.c.orig	Sat Jun 25 23:52:32 2016
    +++ Modules/pyexpat.c	Fri Jul  1 10:46:42 2016
    @@ -267,6 +267,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;