Date: Wed, 29 Oct 2008 09:14:00 GMT From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 152144 for review Message-ID: <200810290914.m9T9E0pK087177@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810290914.m9T9E0pK087177>