css: Don't crash on invalid rotate3d()

This commit is contained in:
Benjamin Otte 2021-12-26 22:58:09 +01:00
parent 7149bfd100
commit fce9b35e4d
5 changed files with 8 additions and 1 deletions

View File

@ -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"))
{

View File

@ -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',

View File

@ -0,0 +1,3 @@
* {
transform: rotate3d(90,90,90);
}

View File

@ -0,0 +1 @@
rotate3d-crash.css:2:31-32: error: GTK_CSS_PARSER_ERROR_SYNTAX