diff options
author | dfr <dfr@FreeBSD.org> | 1999-03-29 08:29:22 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1999-03-29 08:29:22 +0000 |
commit | ede326b6e7be7d05db28ad26cce6dd2aa5283b3d (patch) | |
tree | 363ebffbef01eeb9644fcfcebf46890cdd5f8b27 /sys | |
parent | e0b990afc703149df3099889bbadfe3e0327d170 (diff) | |
download | FreeBSD-src-ede326b6e7be7d05db28ad26cce6dd2aa5283b3d.zip FreeBSD-src-ede326b6e7be7d05db28ad26cce6dd2aa5283b3d.tar.gz |
Call ptrace_u_check with the right size.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/sys_process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 51545e6..711132b 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 <sys/param.h> @@ -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; } |