Re: [xml] xmlNodeDumpOutput appears to corrupt data; crash follows in xmlStrEqual

On Wed, Jan 08, 2003 at 10:42:54AM -0800, gk wrote:
I don't understand why, if this is a PHP issue, the bug is not reproducible 
with the same version of PHP and different versions of libxml2. I will go 
back to the same version of libxml2 that Ilia tested with and see if I can 
reproduce it on my machine, with same PHP and sample code.

  I'm very sorry, but I do not have the time to fix the PHP code.
Your documents from your example did NOT have any DOCTYPE. The doc
xmlDocPtr passed to the serialization routine had an xmlDtdNode.
That xmlDtdNode will NOT be generated by libxml2 (any version) when
passing the sample examples your provided within your PHP. Moreover
that xmlDtdNode is buggy because one of the pointers is 0x3 which
leads to the crash. I don't have the time to find in the PHP code
  - what code generated that xmlDtdNode.
  - why it has buggy pointers
  - why it's passed to the serialization routine while
    obviously the document asked for serialization should NOT
    have an xmlDtdNode

 Again I can't debug this. This sounds completely broken to stay polite.
The fact that the bug doesn't show up with other versions is simply that
earlier version don't have the XHTML1 detection code looking for the 
DTD System ID in order to adjust the serializations accordingly.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]