[DragonFlyBSD - Bug #3425] (Resolved) cpdup: getgroups(0, ...) reads an uninitialized pointer
liweitianux
bugtracker-admin at leaf.dragonflybsd.org
Fri Sep 25 21:26:10 PDT 2026
Issue #3425 has been updated by liweitianux.
Status changed from New to Resolved
Assignee set to liweitianux
Thank you for the patch. Already merged into the master and 6.4 branches.
----------------------------------------
Bug #3425: cpdup: getgroups(0, ...) reads an uninitialized pointer
http://bugs.dragonflybsd.org/issues/3425#change-14704
* Author: sigttou
* Status: Resolved
* Priority: Normal
* Assignee: liweitianux
* 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