Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Ben Wagner
fontconfig
Commits
699d6e4d
Commit
699d6e4d
authored
Jan 23, 2019
by
Akira TAGOH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a crash with invalid matrix element
Fixes
fontconfig/fontconfig#140
parent
b047e299
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/fcxml.c
src/fcxml.c
+5
-0
No files found.
src/fcxml.c
View file @
699d6e4d
...
...
@@ -1480,6 +1480,11 @@ FcParseMatrix (FcConfigParse *parse)
m
.
xy
=
FcPopExpr
(
parse
);
m
.
xx
=
FcPopExpr
(
parse
);
if
(
!
m
.
yy
||
!
m
.
yx
||
!
m
.
xy
||
!
m
.
xx
)
{
FcConfigMessage
(
parse
,
FcSevereWarning
,
"Missing values in matrix element"
);
return
;
}
if
(
FcPopExpr
(
parse
))
FcConfigMessage
(
parse
,
FcSevereError
,
"wrong number of matrix elements"
);
else
...
...
Write
Preview
Markdown
is supported
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