diff options
| author | sin | 2015-02-28 20:49:00 +0000 |
|---|---|---|
| committer | sin | 2015-02-28 20:50:34 +0000 |
| commit | e71d1fd257717987239380f52c25026e634c6a81 (patch) | |
| tree | 1a6b0bd2d7e1f4c28758cbeba0da62a53e2e38a6 /include/unistd.h | |
| parent | de499b92ba1539dde59a8f788807950229d03897 (diff) | |
Remove redundant checks
We can never have an array of more than SIZE_MAX/2/sizeof(gid_t)
gid_t's.
Diffstat (limited to 'include/unistd.h')
| -rw-r--r-- | include/unistd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h index d019b51..6b502b5 100644 --- a/include/unistd.h +++ b/include/unistd.h | |||
| @@ -46,7 +46,7 @@ __fortify_getgroups(int len, gid_t *set) | |||
| 46 | { | 46 | { |
| 47 | size_t bos = __builtin_object_size(set, 0); | 47 | size_t bos = __builtin_object_size(set, 0); |
| 48 | 48 | ||
| 49 | if (bos != -1 && len > bos / sizeof(gid_t)) | 49 | if (len > bos / sizeof(gid_t)) |
| 50 | __builtin_trap(); | 50 | __builtin_trap(); |
| 51 | return getgroups(len, set); | 51 | return getgroups(len, set); |
| 52 | } | 52 | } |
