svn commit: r199391 - stable/8/sbin/ddb
John Baldwin
jhb at FreeBSD.org
Tue Nov 17 15:28:15 UTC 2009
Author: jhb
Date: Tue Nov 17 15:28:14 2009
New Revision: 199391
URL: http://svn.freebsd.org/changeset/base/199391
Log:
MFC 198820:
Ensure 'kvm' is always initialized. If "-M" was not specified and the
garbage value on the stack was not zero, then 'ddb capture' would try to
use the garbage value as a kvm_t pointer.
Modified:
stable/8/sbin/ddb/ddb_capture.c
Directory Properties:
stable/8/sbin/ddb/ (props changed)
Modified: stable/8/sbin/ddb/ddb_capture.c
==============================================================================
--- stable/8/sbin/ddb/ddb_capture.c Tue Nov 17 15:16:21 2009 (r199390)
+++ stable/8/sbin/ddb/ddb_capture.c Tue Nov 17 15:28:14 2009 (r199391)
@@ -204,6 +204,7 @@ ddb_capture(int argc, char *argv[])
mflag = NULL;
nflag = NULL;
+ kvm = NULL;
while ((ch = getopt(argc, argv, "M:N:")) != -1) {
switch (ch) {
case 'M':
More information about the svn-src-stable
mailing list