Page MenuHomeFreeBSD

nscd step6
Needs ReviewPublic

Authored by david_crossfamilyweb.com on Oct 16 2024, 3:10 AM.
Tags
None
Referenced Files
F104261704: D47148.diff
Thu, Dec 5, 12:41 PM
Unknown Object (File)
Fri, Nov 29, 10:18 AM
Unknown Object (File)
Fri, Nov 15, 12:46 AM
Unknown Object (File)
Thu, Nov 14, 8:42 PM
Unknown Object (File)
Oct 23 2024, 5:05 AM
Subscribers

Details

Reviewers
markj
Summary

minor code quality fixups for getpwent.
implement libc side of grouplist and pivot lookups for caching

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

lib/libc/gen/getgrent.c
209
370

original_ngroups is an "untrusted" value, i.e., it comes from nscd. This code should at least verify that

  1. it's non-negative,
  2. that original_ngroups * sizeof(gid_t) won't overflow,

before doing math with it.