Page MenuHomeFreeBSD

D52258.1795556080.diff
No OneTemporary

Authored By
Unknown
Size
617 B
Referenced Files
None
Subscribers
None

D52258.1795556080.diff

diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -2610,11 +2610,13 @@
int structsize;
p = arg;
- size = sizeof(structsize) + p->p_ucred->cr_ngroups * sizeof(gid_t);
+ size = sizeof(structsize) +
+ (1 + p->p_ucred->cr_ngroups) * sizeof(gid_t);
if (sb != NULL) {
KASSERT(*sizep == size, ("invalid size"));
structsize = sizeof(gid_t);
sbuf_bcat(sb, &structsize, sizeof(structsize));
+ sbuf_bcat(sb, &p->p_ucred->cr_gid, sizeof(gid_t));
sbuf_bcat(sb, p->p_ucred->cr_groups, p->p_ucred->cr_ngroups *
sizeof(gid_t));
}

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 24, 9:34 PM (8 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41964447
Default Alt Text
D52258.1795556080.diff (617 B)

Event Timeline