[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

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



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!

_______________________________________________
Xpert mailing list
Xpert@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xpert




[XFree86]     [XFree86 Newbie]     [X.Org]     [Site Home]     [IETF Annouce]     [Security]     [Bugtraq]     [Share Pictures]     [Rubini]
[Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [XFree86 Forum]     [Linux Resources]

Powered by Linux