The 'acl_cnt' field is unsigned; no point in checking if it's >= 0.
Found with: Coverity Prevent CID: 3684
This commit is contained in:
parent
cbfca8b888
commit
9985f972fd
@ -558,7 +558,7 @@ acl_posix1e_check(struct acl *acl)
|
||||
*/
|
||||
num_acl_user_obj = num_acl_user = num_acl_group_obj = num_acl_group =
|
||||
num_acl_mask = num_acl_other = 0;
|
||||
if (acl->acl_cnt > ACL_MAX_ENTRIES || acl->acl_cnt < 0)
|
||||
if (acl->acl_cnt > ACL_MAX_ENTRIES)
|
||||
return (EINVAL);
|
||||
for (i = 0; i < acl->acl_cnt; i++) {
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user