Call ptrace_u_check with the right size.

This commit is contained in:
Doug Rabson 1999-03-29 08:29:22 +00:00
parent a2bc4c59c3
commit 67e7cb89d9

View File

@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * 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> #include <sys/param.h>
@ -414,7 +414,7 @@ ptrace(curp, uap)
return EFAULT; return EFAULT;
} }
if (ptrace_read_u_check(p,(vm_offset_t) uap->addr, if (ptrace_read_u_check(p,(vm_offset_t) uap->addr,
sizeof(long)) && sizeof(int)) &&
!procfs_kmemaccess(curp)) { !procfs_kmemaccess(curp)) {
return EFAULT; return EFAULT;
} }