From c5f538735191330cc112485548e6dc46317eea83 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 28 Feb 2011 09:32:20 -0500 Subject: fixes from Peter Froehlich --- syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syscall.c') diff --git a/syscall.c b/syscall.c index 16c5b47..f6550a1 100644 --- a/syscall.c +++ b/syscall.c @@ -57,7 +57,7 @@ argptr(int n, char **pp, int size) if(argint(n, &i) < 0) return -1; - if((uint)i >= proc->sz || (uint)i+size >= proc->sz) + if((uint)i >= proc->sz || (uint)i+size > proc->sz) return -1; *pp = (char*)i; return 0; -- cgit v1.2.3