diff options
| author | 郑超 <[email protected]> | 2020-04-20 16:57:21 +0800 |
|---|---|---|
| committer | 郑超 <[email protected]> | 2020-04-20 16:57:21 +0800 |
| commit | 8729ebfbbe4f977f55ed585ae02288a83672a359 (patch) | |
| tree | b9c1936cdeb0f4c6cc1d859835d94324e27f53d6 | |
| parent | 5a450d2d158268239a6c6410e42a7da4c0f87134 (diff) | |
| parent | 8205efb1b3d4fb1b9ba667fb859ebaa8809492f6 (diff) | |
Merge branch 'bugfix-loss-hit-compile' into 'master'v2.8.1
scan_hit_status_update_by_compile函数的循环中,未重置n_exsited_path,导致丢失命中的compile。
See merge request MESA_framework/maat!41
| -rw-r--r-- | src/entry/Maat_api.cpp | 1 | ||||
| -rw-r--r-- | src/entry/Maat_rule.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/entry/Maat_api.cpp b/src/entry/Maat_api.cpp index c04d262..c8122a6 100644 --- a/src/entry/Maat_api.cpp +++ b/src/entry/Maat_api.cpp @@ -318,6 +318,7 @@ size_t scan_hit_status_update_by_compile(struct scan_hit_status* hit_status, str { TAILQ_FOREACH(p, &hit_status->hit_path_qhead, entries) { + n_exsited_path=0; if(TO_RELATION_ID(p->path.virtual_table_id, p->path.top_group_id)==a_set.items[i].item_id && p->path.compile_id!=compile_rule->compile_id) { diff --git a/src/entry/Maat_rule.cpp b/src/entry/Maat_rule.cpp index 0adf775..b6aaca5 100644 --- a/src/entry/Maat_rule.cpp +++ b/src/entry/Maat_rule.cpp @@ -33,7 +33,7 @@ #include "stream_fuzzy_hash.h" #include "gram_index_engine.h" -int MAAT_FRAME_VERSION_2_8_20200403=1; +int MAAT_FRAME_VERSION_2_8_20200420=1; int is_valid_table_name(const char* str) { |
