From owner-p4-projects@FreeBSD.ORG Wed Oct 29 09:14:00 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id C5F951065679; Wed, 29 Oct 2008 09:14:00 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A8981065677 for ; Wed, 29 Oct 2008 09:14:00 +0000 (UTC) (envelope-from peter-gmail@wemm.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 78A818FC14 for ; Wed, 29 Oct 2008 09:14:00 +0000 (UTC) (envelope-from peter-gmail@wemm.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m9T9E0tN087179 for ; Wed, 29 Oct 2008 09:14:00 GMT (envelope-from peter-gmail@wemm.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m9T9E0pK087177 for perforce@freebsd.org; Wed, 29 Oct 2008 09:14:00 GMT (envelope-from peter-gmail@wemm.org) Date: Wed, 29 Oct 2008 09:14:00 GMT Message-Id: <200810290914.m9T9E0pK087177@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter-gmail@wemm.org using -f From: Peter Wemm To: Perforce Change Reviews Cc: Subject: PERFORCE change 152144 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 09:14:01 -0000 http://perforce.freebsd.org/chv.cgi?CH=152144 Change 152144 by peter@peter_overcee on 2008/10/29 09:13:14 The oid vector for syscall(2) is arg2 * sizeof(int), not sizeof(int *). Affected files ... .. //depot/projects/valgrind/coregrind/m_syswrap/syswrap-freebsd.c#18 edit Differences ... ==== //depot/projects/valgrind/coregrind/m_syswrap/syswrap-freebsd.c#18 (text+ko) ==== @@ -869,7 +869,7 @@ PRINT("sys_sysctl ( %#lx, %ld, %#lx, %#lx, %#lx, %ld )", ARG1,ARG2,ARG3,ARG4,ARG5,ARG6 ); PRE_REG_READ6(long, "__sysctl", int *, name, unsigned int, namelen, void *, old, vki_size_t *, oldlenp, void *, new, vki_size_t, newlen); - PRE_MEM_READ("sysctl(name)", ARG1, ARG2 * sizeof(int *)); + PRE_MEM_READ("sysctl(name)", ARG1, ARG2 * sizeof(int)); if (ARG5 != (UWord)NULL) PRE_MEM_READ("sysctl(new)", (Addr)ARG5, ARG6); if (ARG4 != (UWord)NULL) {