[Bug 278566] devel/valgrind: __sysctlbyname looks like false positive detect

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 24 Apr 2024 18:21:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278566

--- Comment #5 from Paul Floyd <pjfloyd@wanadoo.fr> ---
I pushed a fix upstream.

commit ac7b5a20cff84c4d13ba0ff4789743e55b24e78f (HEAD -> master, origin/master,
origin/HEAD)
Author: Paul Floyd <pjfloyd@wanadoo.fr>
Date:   Wed Apr 24 20:14:40 2024 +0200

    FreeBSD syswrap: wrong length for __sysctlbyname(name)

    Copied and pasted from syscall where name is a pointer to array of ints
    so the size has a '*sizeof(int)'. -byname name is a char* so should not
    have the *4 factor.

    From
    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278566

Testcase slightly modified (clang-formatted, added attribution and changed it
to not output the string which will be flaky in the regression tests).

This will be included in the release of Valgrind 3.23 due out on Fri 26 April
2024.

-- 
You are receiving this mail because:
You are the assignee for the bug.