Skip to content

GtkIMContextIME: Avoid committing NULL string

Luca Bacci requested to merge imm-check-valid-unicode into gtk-3-24

We may get invalid UTF-16 sequences when third party apps or hooks inject WM_CHAR messages. Validate the unicode string before committing.

Fixes https://gitlab.com/inkscape/inkscape/-/issues/2088

Notes:

  1. It's already that way in GTK4
  2. IMM stands for Input Method Manager
Edited by Luca Bacci

Merge request reports