From 67e7cb89d9ca36f9f19e6704145343caa8db1eb4 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Mon, 29 Mar 1999 08:29:22 +0000 Subject: [PATCH] Call ptrace_u_check with the right size. --- sys/kern/sys_process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 51545e653e6e..711132b90713 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sys_process.c,v 1.41 1998/12/26 17:14:37 dfr Exp $ + * $Id: sys_process.c,v 1.42 1999/01/27 21:49:57 dillon Exp $ */ #include @@ -414,7 +414,7 @@ ptrace(curp, uap) return EFAULT; } if (ptrace_read_u_check(p,(vm_offset_t) uap->addr, - sizeof(long)) && + sizeof(int)) && !procfs_kmemaccess(curp)) { return EFAULT; }