summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
authorWichert Akkerman <wichert@deephackmode.org>1999-04-18 22:50:50 +0000
committerWichert Akkerman <wichert@deephackmode.org>1999-04-18 22:50:50 +0000
commitb859bea10a0945681ecc66a1aa06ae4cc5845af8 (patch)
tree5cbaba069b3cd92387ad75fb5303ac2b550b8e4e /syscall.c
parent7a1f0e95dbd86d8e1213f9ed6a0d848d5f4d395e (diff)
downloadstrace-b859bea10a0945681ecc66a1aa06ae4cc5845af8.tar.gz
strace-b859bea10a0945681ecc66a1aa06ae4cc5845af8.tar.bz2
strace-b859bea10a0945681ecc66a1aa06ae4cc5845af8.tar.xz
Change number of personalities for Linux sparc to 2
Minor other fixes
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/syscall.c b/syscall.c
index 70e516e..045ad27 100644
--- a/syscall.c
+++ b/syscall.c
@@ -1038,6 +1038,9 @@ struct tcb *tcp;
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;
}