kernel: check for error label stack underflow in nexterror()
This commit is contained in:
parent
50bda3d522
commit
00ff4beaa7
1 changed files with 1 additions and 0 deletions
|
@ -1467,6 +1467,7 @@ error(char *err)
|
||||||
void
|
void
|
||||||
nexterror(void)
|
nexterror(void)
|
||||||
{
|
{
|
||||||
|
assert(up->nerrlab > 0);
|
||||||
gotolabel(&up->errlab[--up->nerrlab]);
|
gotolabel(&up->errlab[--up->nerrlab]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue