Date: Wed, 24 Apr 2024 18:21:28 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 278566] devel/valgrind: __sysctlbyname looks like false positive detect Message-ID: <bug-278566-7788-uGnZwZY6oa@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-278566-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-278566-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278566 --- Comment #5 from Paul Floyd <pjfloyd@wanadoo.fr> --- I pushed a fix upstream. commit ac7b5a20cff84c4d13ba0ff4789743e55b24e78f (HEAD -> master, origin/mas= ter, 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=3D278566 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 Apr= il 2024. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278566-7788-uGnZwZY6oa>