Date: Fri, 11 Apr 2008 11:34:09 +0000 (UTC) From: Ruslan Ermilov <ru@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/top machine.c Message-ID: <200804111134.m3BBY9XN012966@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ru 2008-04-11 11:34:09 UTC FreeBSD src repository Modified files: usr.bin/top machine.c Log: Allocate enough memory for pcpu_cp_time[] to stop sysctl() from writing outside of array bounds. This fully fixes -P display on i386, where kern.cp_times prints zeroes for non-existing CPUs. Revision Changes Path 1.88 +1 -1 src/usr.bin/top/machine.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804111134.m3BBY9XN012966>