1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-09-15 16:01:08 +03:00
Files
libxslt/tests/general/bug-208.xsl
Nick Wellnhofer 6b067190fe Fix NULL deref in xsltDefaultSortFunction
An evaluation error in a secondary sort key could lead to a NULL pointer
dereference.

Thanks to Nicolas Gregoire for the report.

Fixes bug 785588.
2017-07-31 15:00:53 +02:00

9 lines
248 B
XML

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<xsl:for-each select="//.">
<xsl:sort/>
<xsl:sort select="*[a:b]"/>;
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>