[xml] Crash in xmlPushInput



I am experiencing a crash within xmlPushInput in the 2.6.26 version of
libxml.  Using the reader1 example change the xmlReaderForFile options
to be:

  XML_PARSE_RECOVER | XML_PARSE_NOENT |
  XML_PARSE_NOERROR | XML_PARSE_NOWARNING |
  XML_PARSE_NONET | XML_PARSE_NOCDATA |
  XML_PARSE_NOBLANKS

I have attached the crashing XML file and a backtrace.

In a separate application with the same file and same libxml options the
library crashes in parser.c:3499 dereferencing a NULL pointer.

Any help would be appreciated.

Best regards,
Ryan Phillips

Starting program: /home/rphillips/reader1 crash.xml
[Thread debugging using libthread_db enabled]
[New Thread -1208514336 (LWP 26163)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208514336 (LWP 26163)]
0x00386e21 in xmlPushInput () from /usr/lib/libxml2.so.2
#0  0x00386e21 in xmlPushInput () from /usr/lib/libxml2.so.2
#1  0x0042452a in xmlParseCharData () from /usr/lib/libxml2.so.2
#2  0x00428f27 in xmlParseChunk () from /usr/lib/libxml2.so.2
#3  0x00432e9e in xmlRegExecPushString () from /usr/lib/libxml2.so.2
#4  0x00433a98 in xmlTextReaderRead () from /usr/lib/libxml2.so.2
#5  0x08048931 in streamFile (filename=0xbffd5c95 "crash.xml") at reader1.c:68
#6  0x080489f3 in main (argc=2, argv=0xbffab614) at reader1.c:93
#0  0x00386e21 in xmlPushInput () from /usr/lib/libxml2.so.2
The program is running.  Exit anyway? (y or n) 
<html><head>

<title></title></head>
<!-- Redirection Services Red-01A-SEF W1 -->
<frameset rows='100%, *' frameborder=no framespacing=0 border=0>
<frame src="http://landing.domainsponsor.com/index.rdf"; name=mainwindow frameborder=no framespacing=0 
marginheight=0 marginwidth=0></frame>
</frameset>
<noframes>
<h2>Your browser does not support frames.  We recommend upgrading your browser.</h2><br><br>
<center>Click <a href="http://landing.domainsponsor.com/index.rdf";>here</a> to enter the site.</center>
</noframes></html>


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