1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-09-14 05:09:26 +03:00
Files
libxslt/tests/general/bug-185.xsl
Nick Wellnhofer fc1ff481fd Fix use-after-free in xsltDocumentFunctionLoadDocument
Also fixes a memory leak in an unlikely error case.

Fixes bug #758291
https://bugzilla.gnome.org/show_bug.cgi?id=758291
2016-02-25 17:16:06 +01:00

15 lines
403 B
XML

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="in">
<annotation>
<xsl:copy-of select="."/>
<value>
<xsl:copy-of select="document(.)"/>
</value>
</annotation>
</xsl:template>
<xsl:template match="@*|node()">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>