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.
This commit is contained in:
parent
2d322e385f
commit
23cf1900e0
@ -204,6 +204,7 @@ ddb_capture(int argc, char *argv[])
|
|||||||
|
|
||||||
mflag = NULL;
|
mflag = NULL;
|
||||||
nflag = NULL;
|
nflag = NULL;
|
||||||
|
kvm = NULL;
|
||||||
while ((ch = getopt(argc, argv, "M:N:")) != -1) {
|
while ((ch = getopt(argc, argv, "M:N:")) != -1) {
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 'M':
|
case 'M':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user