[xslt] Segfault with CDATA



Hi,

I'm getting segfaults with xsltproc on my website.
Here is a simple test case with as little code as possible to produce 
the error.

/===== begin style.xsl =====
<?xml version='1.0' encoding="UTF-8"?>

<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns="http://www.w3.org/1999/xhtml";>
<xsl:output method="xml" media-type="text/html"
  doctype-public="-//W3C//DTD XHTML 1.1//EN"
  doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd";
  indent="yes" encoding="UTF-8" />

<xsl:template match="/">

<html>
<xsl:text disable-output-escaping="yes">
<![CDATA[ ]]>
</xsl:text>
</html>

</xsl:template>

</xsl:stylesheet>
\===== end style.xsl =====

Then if I do:

/=====
18:48 laug@horus ~/sitevia/site% xsltproc style.xsl aaa
warning: failed to load external entity "aaa"
unable to parse aaa
zsh: segmentation fault  xsltproc style.xsl aaa
\=====

I am using this version of the software:

/=====
19:25 laug@horus ~/xsltproc% xsltproc -V
Using libxml 20602, libxslt 10033 and libexslt 722
xsltproc was compiled against libxml 20511, libxslt 10033 and libexslt 722
libxslt 10033 was compiled against libxml 20511
libexslt 722 was compiled against libxml 20511
\=====

Thank you.
-- 
laug





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