Hi,

uim-xim and uim-gtk-immmodule are made to crash when
uim_x_kana_input_hack_init() was called.
It is reproduced on scrotwm (http://www.scrotwm.org/).

I don't know detail of X11 programming, but man page of
XGetKeyboardMapping says,

>  The number of elements in the KeySyms list is:
>  keycode_count * keysyms_per_keycode_return

Is it correct?

Index: uim/uim-x-kana-input-hack.c
===================================================================
--- uim/uim-x-kana-input-hack.c (revision 6105)
+++ uim/uim-x-kana-input-hack.c (working copy)
@@ -127,7 +127,7 @@
 
   if (keysyms_per_keycode >= SHIFTED_KEYSYM_INDEX + 1) {
     for (i = 0, syms = map;
-        i <= keycode_count;
+        i < keycode_count;
         i++, syms += keysyms_per_keycode)
     {
       unmodified = syms[UNMODIFIED_KEYSYM_INDEX];

-- 
Google Groups "uim-en" group
uim-en@googlegroups.com
http://groups.google.com/group/uim-en/about

Reply via email to