diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-12-31 07:29:55 +0100 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-12-31 07:29:55 +0100 |
| commit | 00ff4beaa76fb3dde4d1222408d1308f4077dde1 (patch) | |
| tree | 8e0358db266734ec9fc8aa6c1f06cbaaa85d4729 | |
| parent | 50bda3d5225190cd8e2b3c7ce7aa3c1ea1759e40 (diff) | |
| download | plan9front-00ff4beaa76fb3dde4d1222408d1308f4077dde1.tar.xz | |
kernel: check for error label stack underflow in nexterror()
| -rw-r--r-- | sys/src/9/port/proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/9/port/proc.c b/sys/src/9/port/proc.c index 8f3817b57..41cfb9aff 100644 --- a/sys/src/9/port/proc.c +++ b/sys/src/9/port/proc.c @@ -1467,6 +1467,7 @@ error(char *err) void nexterror(void) { + assert(up->nerrlab > 0); gotolabel(&up->errlab[--up->nerrlab]); } |
