Hi,

Here is a patch for RH bugzilla bug #158405, in which who(1) overflows
a buffer.

  https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158405

'LC_ALL=de_DE.UTF-8 /usr/bin/who -Hliw' is what triggers it.

--- coreutils-5.2.1/src/who.c.overflow  2005-05-25 09:59:06.000000000 +0100
+++ coreutils-5.2.1/src/who.c   2005-05-25 10:00:31.000000000 +0100
@@ -75,7 +75,7 @@
 # define NEW_TIME 0
 #endif
 
-#define IDLESTR_LEN 6
+#define IDLESTR_LEN 10
 
 #if HAVE_STRUCT_XTMP_UT_PID
 # define PIDSTR_DECL_AND_INIT(Var, Utmp_ent) \


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to