PERFORCE change 152144 for review

Peter Wemm peter at FreeBSD.org
Wed Oct 29 09:14:01 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=152144

Change 152144 by peter at 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) {


More information about the p4-projects mailing list