[DragonFlyBSD - Bug #3425] (New) cpdup: getgroups(0, ...) reads an uninitialized pointer

sigttou bugtracker-admin at leaf.dragonflybsd.org
Fri Sep 25 20:57:41 PDT 2026


Issue #3425 has been reported by sigttou.

----------------------------------------
Bug #3425: cpdup: getgroups(0, ...) reads an uninitialized pointer
http://bugs.dragonflybsd.org/issues/3425

* Author: sigttou
* Status: New
* Priority: Normal
* Category: Userland
* Target version: 6.6
* Start date: 2026-09-26
----------------------------------------
getmygroups() calls getgroups(0, *gidlist) to get the group count before
*gidlist is initialized. With a size of 0 the list argument is ignored and
may be NULL.

Pass NULL. getmygroups() is also reached through hc_getgroups(), whose
caller owns *gidlist, so the callee must not read it.

---Files--------------------------------
0001-cpdup-Don-t-pass-an-uninitialized-pointer-to-getgrou.patch (931 Bytes)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account


More information about the Bugs mailing list