mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
csstokenizer: Fix an out of bounds when reading an ident followed by EOF
This commit is contained in:
parent
e5e147ad53
commit
840cd6e44c
@ -1020,7 +1020,7 @@ gtk_css_tokenizer_read_ident_like (GtkCssTokenizer *tokenizer,
|
||||
{
|
||||
gtk_css_tokenizer_read_name (tokenizer);
|
||||
|
||||
if (*tokenizer->data == '(')
|
||||
if (gtk_css_tokenizer_remaining (tokenizer) > 0 && *tokenizer->data == '(')
|
||||
{
|
||||
gtk_css_tokenizer_consume_ascii (tokenizer);
|
||||
if (g_ascii_strcasecmp (tokenizer->name_buffer->str, "url") == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user