php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54601
Patch v1.patch revision 2011-04-25 21:13 UTC by hannes dot magnusson at gmail dot com

Patch v1.patch for Reproducible crash Bug #54601

Patch version 2011-04-25 21:13 UTC

Return to Bug #54601 | Download this patch
Patch Revisions:

Developer: hannes.magnusson@gmail.com

Index: ext/libxml/libxml.c
===================================================================
--- ext/libxml/libxml.c	(revision 310449)
+++ ext/libxml/libxml.c	(working copy)
@@ -222,6 +222,7 @@
 			switch (node->type) {
 				/* Skip property freeing for the following types */
 				case XML_NOTATION_NODE:
+				case XML_ENTITY_DECL:
 					break;
 				case XML_ENTITY_REF_NODE:
 					php_libxml_node_free_list((xmlNodePtr) node->properties TSRMLS_CC);
@@ -233,7 +234,6 @@
 				case XML_ATTRIBUTE_DECL:
 				case XML_DTD_NODE:
 				case XML_DOCUMENT_TYPE_NODE:
-				case XML_ENTITY_DECL:
 				case XML_NAMESPACE_DECL:
 				case XML_TEXT_NODE:
 					php_libxml_node_free_list(node->children TSRMLS_CC);
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 17 01:01:56 2014 UTC