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