commit | b859bea10a0945681ecc66a1aa06ae4cc5845af8 | [log] [tgz] |
---|---|---|
author | Wichert Akkerman <wichert@deephackmode.org> | Sun Apr 18 22:50:50 1999 +0000 |
committer | Wichert Akkerman <wichert@deephackmode.org> | Sun Apr 18 22:50:50 1999 +0000 |
tree | 5cbaba069b3cd92387ad75fb5303ac2b550b8e4e | |
parent | 7a1f0e95dbd86d8e1213f9ed6a0d848d5f4d395e [diff] [blame] |
Change number of personalities for Linux sparc to 2 Minor other fixes
diff --git a/syscall.c b/syscall.c index 70e516e..045ad27 100644 --- a/syscall.c +++ b/syscall.c
@@ -1038,6 +1038,9 @@ int i; tcp->u_nargs = sysent[tcp->scno].nargs; for (i = 0; i < tcp->u_nargs; i++) { + /* WTA: if scno is out-of-bounds this will bomb. Add range-check + * for scno somewhere above here! + */ if (upeek(pid, REG_A0+i, &tcp->u_arg[i]) < 0) return -1; }