From owner-cvs-src@FreeBSD.ORG Fri Apr 11 11:34:09 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A33C0106566C; Fri, 11 Apr 2008 11:34:09 +0000 (UTC) (envelope-from ru@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 765578FC12; Fri, 11 Apr 2008 11:34:09 +0000 (UTC) (envelope-from ru@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m3BBY9bR012967; Fri, 11 Apr 2008 11:34:09 GMT (envelope-from ru@repoman.freebsd.org) Received: (from ru@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m3BBY9XN012966; Fri, 11 Apr 2008 11:34:09 GMT (envelope-from ru) Message-Id: <200804111134.m3BBY9XN012966@repoman.freebsd.org> From: Ruslan Ermilov Date: Fri, 11 Apr 2008 11:34:09 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/top machine.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2008 11:34:09 -0000 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