mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
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. MFC after: 1 week
This commit is contained in:
parent
060ed74b53
commit
5ef5fd6e53
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198820
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user