修复bypass优先先级错误:比较动作时,未转换为unsigned char关闭asan;
This commit is contained in:
@@ -180,7 +180,7 @@ static int index_of_enforce_policy(struct Maat_rule_t* result, size_t size)
|
||||
int biggest_policy_id=0, ret_intercept_idx=0;
|
||||
for(i=0; i<size; i++)
|
||||
{
|
||||
if(result[i].action==KNI_ACTION_BYPASS)
|
||||
if((unsigned char)result[i].action==KNI_ACTION_BYPASS)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user