[openi18n-im:01105] Re: report on unitLE crashes

sriram swaminathan <[email protected]>
Newsgroups gmane.comp.internationalization.input-methods
Message-ID <[email protected]>
Hi Leon,

Attached is the diff that fixes the following problems:

1. Switch to XCIN and type something ..Server crashes with SIGSEGV
2. After using XCIN input method, if you close the client application,
    then client crashes.

Thanks and Regards,
Sriram.
xcin.diff (text/x-patch, 764 B)
--- gen_inp.c	2004-10-25 18:51:33.114560128 -0700
+++ gen_inp.c.new	2004-10-25 18:51:17.056001400 -0700
@@ -129,6 +129,7 @@
     inpinfo->n_selkey = cf->header.n_selkey;
     mcch_size = inpinfo->n_selkey;  
     mcch = calloc(1, mcch_size * sizeof(wch_t));
+    inpinfo->mcch = calloc(1, mcch_size * sizeof(wch_t));
 
     do
     {
--- xmlconf.c	2004-10-25 18:51:48.510219632 -0700
+++ xmlconf.c.new	2004-10-25 18:51:23.754983000 -0700
@@ -140,9 +140,11 @@
 {
     if (inputstyles){
         imnodes *node = inputstyles->first;
+        imnodes *temp; 
         while( node != inputstyles->last ){
-            free(node);
+            temp = node;
             node = node->next;
+            free(temp);
         }
         free((langim*) inputstyles);
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.