HomeFreeBSD

mountd: fix a crash when getgrouplist reports too many groups

Description

mountd: fix a crash when getgrouplist reports too many groups

Previously the code only warned about the condition and then happily
proceeded to use the too large value resulting in the array
out-of-bounds access.

Obtained from: Panzura (Chuanbo Zheng)
MFC after: 10 days
Sponsored by: Panzura

Details

Provenance
avgAuthored on
Parents
rS332558: loader: command_errmsg should be const
Branches
Unknown
Tags
Unknown