[PATCH] luit(1) crashes (Bus error).

"Semen A. Ustimenko" <[email protected]>
Newsgroups gmane.comp.xfree86.expert
Message-ID <[email protected]>
Hi!

Here is a one line fix to xc/programs/luit/iso2022.c file, the problem is
obvious:  the is->outbuf_count field is not initialized. It crashes later,
when trying to dereference is->outbuf[is->outbuf_count++].

--- iso2022.c.orig	Sun Dec  8 06:30:58 2002
+++ iso2022.c	Sun Dec  8 06:32:09 2002
@@ -196,6 +196,7 @@
         free(is);
         return NULL;
     }
+    is->outbuf_count = 0;

     return is;
 }

Could someone commit it or should I file a bug?

Bye!
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.