1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-08 21:42:07 +03:00
Files
libxslt/tests/general/bug-222.xsl
Nick Wellnhofer 6ce8de6933 Fix uninitialized read with UTF-8 grouping chars
The character type in xsltFormatNumberConversion was too narrow and
an invalid character/length combination could be passed to
xsltNumberFormatDecimal, resulting in an uninitialized read.

Found by OSS-Fuzz.
2019-06-19 16:11:03 +02:00

7 lines
260 B
XML

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:decimal-format name="f" grouping-separator="⠢"/>
<xsl:template match="/">
<xsl:value-of select="format-number(10,'#⠢0','f')"/>
</xsl:template>
</xsl:stylesheet>