Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.bin/top Pull up revision 1.4 (requested by he):



details:   https://anonhg.NetBSD.org/src/rev/20d3c438c9eb
branches:  netbsd-1-4
changeset: 471206:20d3c438c9eb
user:      he <he%NetBSD.org@localhost>
date:      Sat Nov 04 18:49:23 2000 +0000

description:
Pull up revision 1.4 (requested by he):
  Avoid buffer overflow, closing a security hole.

diffstat:

 usr.bin/top/display.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r a46d93b4215c -r 20d3c438c9eb usr.bin/top/display.c
--- a/usr.bin/top/display.c     Sat Nov 04 18:43:11 2000 +0000
+++ b/usr.bin/top/display.c     Sat Nov 04 18:49:23 2000 +0000
@@ -822,7 +822,7 @@
 #endif
 
     /* first, format the message */
-    (void) vsprintf(next_msg, msgfmt, ap);
+    (void) vsnprintf(next_msg, sizeof(next_msg), msgfmt, ap);
 
     va_end(ap);
 



Home | Main Index | Thread Index | Old Index