From 3132d59c8dfbfd0868cf82c79ef874dba77a9bdf Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Fri, 20 Mar 1992 21:55:42 -0800 Subject: [PATCH] don't let negative system call codes in SCCS-vsn: sys/pmax/pmax/trap.c 7.4 --- usr/src/sys/pmax/pmax/trap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/src/sys/pmax/pmax/trap.c b/usr/src/sys/pmax/pmax/trap.c index 51519caf22..857f67c677 100644 --- a/usr/src/sys/pmax/pmax/trap.c +++ b/usr/src/sys/pmax/pmax/trap.c @@ -11,7 +11,7 @@ * * from: Utah $Hdr: trap.c 1.32 91/04/06$ * - * @(#)trap.c 7.3 (Berkeley) %G% + * @(#)trap.c 7.4 (Berkeley) %G% */ #include "param.h" @@ -422,7 +422,7 @@ trap(statusReg, causeReg, vadr, pc, args) } } } else { - if (code >= numsys) + if ((u_int)code >= numsys) callp = &systab[0]; /* indir (illegal) */ else callp = &systab[code]; -- 2.20.1