Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149412171
D52265.id162234.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D52265.id162234.diff
View Options
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c
--- a/sys/kern/subr_param.c
+++ b/sys/kern/subr_param.c
@@ -235,14 +235,11 @@
* specification for <limits.h>, paragraph "Runtime Increasable
* Values").
*
- * On the other hand, INT_MAX would result in an overflow for the common
- * 'ngroups_max + 1' computation (to obtain the size of the internal
- * groups array, its first element being reserved for the effective
- * GID). Also, the number of allocated bytes for the group array must
- * not overflow on 32-bit machines. For all these reasons, we limit the
- * number of supplementary groups to some very high number that we
- * expect will never be reached in all practical uses and ensures we
- * avoid the problems just exposed, even if 'gid_t' was to be enlarged
+ * On the other hand, a too high value would result in an overflow when
+ * computing the number of bytes to allocate for the groups array. We
+ * thus limit the number of supplementary groups to some very high
+ * number that we expect will never be reached in all practical uses,
+ * avoiding the problem just exposed even if 'gid_t' were to be enlarged
* by a magnitude.
*/
ngroups_max = NGROUPS_MAX;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 25, 7:22 AM (5 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30307304
Default Alt Text
D52265.id162234.diff (1 KB)
Attached To
Mode
D52265: cred: 'kern.ngroups' tunable: Rework the comment on the initial value
Attached
Detach File
Event Timeline
Log In to Comment