projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8667b7a
)
GtkIMContextSimple: array bounds was not correctly checked
author
Víctor Marzo
<samsaga2@gmail.com>
Thu, 19 May 2022 09:35:14 +0000
(11:35 +0200)
committer
Víctor Marzo
<samsaga2@gmail.com>
Thu, 19 May 2022 09:35:14 +0000
(11:35 +0200)
Fixes #4771
gtk/gtkimcontextsimple.c
patch
|
blob
|
history
diff --git
a/gtk/gtkimcontextsimple.c
b/gtk/gtkimcontextsimple.c
index a0dd701d26252858fcc414ff61f88a1fefdabf43..85f307a343dfca6661056c231177e59f2b8c2316 100644
(file)
--- 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);