Commit c5eb6cf3 authored by Nick Wellnhofer's avatar Nick Wellnhofer
Browse files

Fix uninitialized read of xsl:number token

Found by OSS-Fuzz.
parent d3ec6060
......@@ -382,6 +382,9 @@ xsltNumberFormatTokenize(const xmlChar *format,
tokens->tokens[tokens->nTokens].token = val - 1;
ix += len;
val = xmlStringCurrentChar(NULL, format+ix, &len);
} else {
tokens->tokens[tokens->nTokens].token = (xmlChar)'0';
tokens->tokens[tokens->nTokens].width = 1;
}
} else if ( (val == (xmlChar)'A') ||
(val == (xmlChar)'a') ||
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment