From: "gj%pcs.dec.com@inet-gw-1.pa.dec.com" <garyj@rks32.pcs.dec.com>
Given the right circumstances, a call to kvm_open can result in a core dump. The diff belows fixes this (note that this change is already in the NetBSD code). Could somebody apply this? Gary J. Submitted by: gj
This commit is contained in:
parent
3237032fdc
commit
e4bd62878a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4231
@ -102,6 +102,7 @@ _kvm_initvtop(kvm_t *kd) {
|
||||
_kvm_err(kd, kd->program, "bad namelist");
|
||||
return (-1);
|
||||
}
|
||||
vm->PTD = 0
|
||||
vm->IdlePTD = 0;
|
||||
if (KREAD(kd, (u_long)nlist[0].n_value, &vm->IdlePTD)) {
|
||||
_kvm_err(kd, kd->program, "cannot read IdlePTD");
|
||||
|
@ -102,6 +102,7 @@ _kvm_initvtop(kvm_t *kd) {
|
||||
_kvm_err(kd, kd->program, "bad namelist");
|
||||
return (-1);
|
||||
}
|
||||
vm->PTD = 0
|
||||
vm->IdlePTD = 0;
|
||||
if (KREAD(kd, (u_long)nlist[0].n_value, &vm->IdlePTD)) {
|
||||
_kvm_err(kd, kd->program, "cannot read IdlePTD");
|
||||
|
Loading…
Reference in New Issue
Block a user