Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
libxslt
Commits
c5eb6cf3
Commit
c5eb6cf3
authored
Apr 27, 2019
by
Nick Wellnhofer
Browse files
Fix uninitialized read of xsl:number token
Found by OSS-Fuzz.
parent
d3ec6060
Changes
1
Show whitespace changes
Inline
Side-by-side
libxslt/numbers.c
View file @
c5eb6cf3
...
...
@@ -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'
)
||
...
...
Mark Denihan
@markdenihan
mentioned in issue
#20 (closed)
·
Aug 16, 2019
mentioned in issue
#20 (closed)
mentioned in issue #20
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment