Page MenuHomeFreeBSD

D52277.1795519528.diff
No OneTemporary

Authored By
Unknown
Size
892 B
Referenced Files
None
Subscribers
None

D52277.1795519528.diff

diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1034,7 +1034,7 @@
int error;
struct proc *p;
- if (ngrp < 0 || ngrp >= ngroups_max)
+ if (ngrp < 0 || ngrp > ngroups_max)
return (EINVAL);
linux_gidset = malloc(ngrp * sizeof(*linux_gidset), M_LINUX, M_WAITOK);
error = copyin(args->grouplist, linux_gidset, ngrp * sizeof(l_gid_t));
diff --git a/sys/compat/linux/linux_uid16.c b/sys/compat/linux/linux_uid16.c
--- a/sys/compat/linux/linux_uid16.c
+++ b/sys/compat/linux/linux_uid16.c
@@ -91,7 +91,7 @@
int error;
struct proc *p;
- if (ngrp < 0 || ngrp >= ngroups_max)
+ if (ngrp < 0 || ngrp > ngroups_max)
return (EINVAL);
linux_gidset = malloc(ngrp * sizeof(*linux_gidset), M_LINUX, M_WAITOK);
error = copyin(args->gidset, linux_gidset, ngrp * sizeof(l_gid16_t));

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 24, 11:25 AM (57 m, 13 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41929349
Default Alt Text
D52277.1795519528.diff (892 B)

Event Timeline