forked from AuroraMiddleware/gtk
css: Don't crash on invalid rotate3d()
This commit is contained in:
parent
7149bfd100
commit
fce9b35e4d
@ -942,7 +942,7 @@ _gtk_css_transform_value_parse (GtkCssParser *parser)
|
||||
|
||||
while (TRUE)
|
||||
{
|
||||
GtkCssTransform transform;
|
||||
GtkCssTransform transform = { 0, };
|
||||
|
||||
if (gtk_css_parser_has_function (parser, "matrix"))
|
||||
{
|
||||
|
@ -452,6 +452,9 @@ test_data = [
|
||||
'radial-positions.errors',
|
||||
'radial-positions.ref.css',
|
||||
'radial.ref.css',
|
||||
'rotate3d-crash.css',
|
||||
'rotate3d-crash.errors',
|
||||
'rotate3d-crash.ref.css',
|
||||
'selector.css',
|
||||
'selector.ref.css',
|
||||
'selector-original.css',
|
||||
|
3
testsuite/css/parser/rotate3d-crash.css
Normal file
3
testsuite/css/parser/rotate3d-crash.css
Normal file
@ -0,0 +1,3 @@
|
||||
* {
|
||||
transform: rotate3d(90,90,90);
|
||||
}
|
1
testsuite/css/parser/rotate3d-crash.errors
Normal file
1
testsuite/css/parser/rotate3d-crash.errors
Normal file
@ -0,0 +1 @@
|
||||
rotate3d-crash.css:2:31-32: error: GTK_CSS_PARSER_ERROR_SYNTAX
|
0
testsuite/css/parser/rotate3d-crash.ref.css
Normal file
0
testsuite/css/parser/rotate3d-crash.ref.css
Normal file
Loading…
Reference in New Issue
Block a user