mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
In sudo_make_grlist_item() the calculation of total did not include
space for pointers to the group names.
This commit is contained in:
parent
4f74fe3a8e
commit
c92f80b79e
@ -353,6 +353,7 @@ sudo_make_grlist_item(const struct passwd *pw, char * const *unused1)
|
||||
/* Allocate in one big chunk for easy freeing. */
|
||||
nsize = strlen(pw->pw_name) + 1;
|
||||
total = sizeof(*grlitem) + nsize;
|
||||
total += sizeof(char *) * gidlist->ngids;
|
||||
total += groupname_len * gidlist->ngids;
|
||||
|
||||
again:
|
||||
|
Loading…
x
Reference in New Issue
Block a user