kernel: fix out of bound read in trap()
Reported by coverity, CID 155927: if vno == 32 it would access index 32 of excname at trap.c:339.
This commit is contained in:
parent
6dd0f2e130
commit
c2b06ebf80
@ -332,7 +332,7 @@ trap(Ureg* ureg)
|
|||||||
preempted();
|
preempted();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(vno <= nelem(excname) && user){
|
else if(vno < nelem(excname) && user){
|
||||||
spllo();
|
spllo();
|
||||||
if(vno == 0xd) /* General Protection */
|
if(vno == 0xd) /* General Protection */
|
||||||
dumpregs(ureg);
|
dumpregs(ureg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user