forked from AuroraMiddleware/gtk
accelgroup: Fix a buffer overrun
gtk_accelerator_parse_with_keycode can overrun its buffer for certain inputs. Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/2325
This commit is contained in:
parent
245546de61
commit
2a7b5d8229
@ -1295,9 +1295,9 @@ gtk_accelerator_parse_with_keycode (const gchar *accelerator,
|
||||
last_ch = *accelerator;
|
||||
while (last_ch && last_ch != '>')
|
||||
{
|
||||
last_ch = *accelerator;
|
||||
accelerator += 1;
|
||||
len -= 1;
|
||||
last_ch = *accelerator;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user