Page MenuHomeFreeBSD

nscd step6
Needs ReviewPublic

Authored by david_crossfamilyweb.com on Oct 16 2024, 3:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 5, 12:41 PM
Unknown Object (File)
Fri, Nov 29, 10:18 AM
Unknown Object (File)
Nov 15 2024, 12:46 AM
Unknown Object (File)
Nov 14 2024, 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.