mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
removed an unprotedted debug message Aleksi Suhonen put a guard against
* python/libxml.c: removed an unprotedted debug message Aleksi Suhonen * parser.c: put a guard against infinite document depth, basically trying to avoid another kind of DoS attack. * relaxng.c: some code w.r.t. nameClasses Daniel
This commit is contained in:
@ -2527,7 +2527,9 @@ libxml_xmlNewNode(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
||||
if (!PyArg_ParseTuple(args, (char *) "s:xmlNewNode", &name))
|
||||
return (NULL);
|
||||
node = (xmlNodePtr) xmlNewNode(NULL, name);
|
||||
#ifdef DEBUG
|
||||
printf("NewNode: %s : %p\n", name, (void *) node);
|
||||
#endif
|
||||
|
||||
if (node == NULL) {
|
||||
Py_INCREF(Py_None);
|
||||
|
Reference in New Issue
Block a user