diff options
author | Víctor Marzo <samsaga2@gmail.com> | 2022-05-19 11:35:14 +0200 |
---|---|---|
committer | Víctor Marzo <samsaga2@gmail.com> | 2022-05-19 11:35:14 +0200 |
commit | 3955633aa8117d8a57bbfb3cc53abc6bf58d491c (patch) | |
tree | bae4baadf414c027a17c300d8caa0e156742634b /gtk/gtkimcontextsimple.c | |
parent | 8667b7a46ca6ceaad2803c59300a5fd2779d1759 (diff) | |
download | gtk+-3955633aa8117d8a57bbfb3cc53abc6bf58d491c.tar.gz |
GtkIMContextSimple: array bounds was not correctly checked
Fixes #4771
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r-- | gtk/gtkimcontextsimple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c index a0dd701d26..85f307a343 100644 --- a/gtk/gtkimcontextsimple.c +++ b/gtk/gtkimcontextsimple.c @@ -813,7 +813,7 @@ gtk_im_context_simple_filter_keypress (GtkIMContext *context, gboolean compose_match; guint keyval, state; - while (priv->compose_buffer[n_compose] != 0 && n_compose < priv->compose_buffer_len) + while (n_compose < priv->compose_buffer_len && priv->compose_buffer[n_compose] != 0) n_compose++; keyval = gdk_key_event_get_keyval (event); |