[OPTIMIZE]get_hit_groups don't return superior group id & hit_groups may be duplicated

This commit is contained in:
liuwentan
2023-09-08 14:52:46 +08:00
parent ca2e4d6cd2
commit c237d7dbaf
6 changed files with 74 additions and 202 deletions

View File

@@ -295,6 +295,7 @@ size_t maat_state_get_scan_count(struct maat_state *state);
* @param type:
* MAAT_LIST_TYPE_FULL => get all hit groups after maat_state_new
* MAAT_LIST_TYPE_INC => get hit groups for this scan
* NOTE: hit groups may be duplicated, only return hit sub group id
*/
int maat_state_get_hit_groups(struct maat_state *state, enum maat_list_type type,
struct maat_hit_group *groups, size_t n_group);