diff --git a/util/posix/process_info_mac.cc b/util/posix/process_info_mac.cc index a5e37538..17d205a6 100644 --- a/util/posix/process_info_mac.cc +++ b/util/posix/process_info_mac.cc @@ -110,7 +110,7 @@ std::set ProcessInfo::SupplementaryGroups() const { const short ngroups = kern_proc_info_.kp_eproc.e_ucred.cr_ngroups; DCHECK_GE(ngroups, 0); - DCHECK_LT(static_cast(ngroups), + DCHECK_LE(static_cast(ngroups), arraysize(kern_proc_info_.kp_eproc.e_ucred.cr_groups)); const gid_t* groups = kern_proc_info_.kp_eproc.e_ucred.cr_groups;