From owner-cvs-src-old@FreeBSD.ORG Thu Oct 29 13:45:15 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7692B1065696 for ; Thu, 29 Oct 2009 13:45:15 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 63AFF8FC2F for ; Thu, 29 Oct 2009 13:45:15 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n9TDjFjg085024 for ; Thu, 29 Oct 2009 13:45:15 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n9TDjFIj085023 for cvs-src-old@freebsd.org; Thu, 29 Oct 2009 13:45:15 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200910291345.n9TDjFIj085023@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Thu, 29 Oct 2009 13:44:58 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/ddb ddb_capture.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Oct 2009 13:45:15 -0000 jhb 2009-10-29 13:44:58 UTC FreeBSD src repository Modified files: sbin/ddb ddb_capture.c Log: SVN rev 198585 on 2009-10-29 13:44:58Z by jhb When extracting the capture buffer from a crashdump, only read the valid portion of the capture buffer (db_capture_bufoff vs db_capture_bufsize). This could result in outputting garbage (e.g. lots of 'p' characters if DIAGNOSTIC is enabled) after the end of the capture buffer. While here, fix a spelling nit. Reported by: Mikolaj Golub to my trociny of gmail MFC after: 3 days Revision Changes Path 1.2 +10 -10 src/sbin/ddb/ddb_capture.c