From d2f78657dd611f11abd45ca6b2c7e6ed043e5ca3 Mon Sep 17 00:00:00 2001 From: zhengchao Date: Fri, 23 Nov 2018 16:12:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=A9=BA=E5=A3=B3=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E9=85=8D=E7=BD=AE=EF=BC=88=E8=A2=ABgroup=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E4=BD=86=E6=97=A0compile=EF=BC=89=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E6=9C=AA=E5=AF=B9table=E5=88=A4=E7=A9=BA=E7=9A=84bug=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/Maat_rule.cpp | 2 +- src/inc_internal/Maat_rule_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entry/Maat_rule.cpp b/src/entry/Maat_rule.cpp index 4e3477d..146fe14 100644 --- a/src/entry/Maat_rule.cpp +++ b/src/entry/Maat_rule.cpp @@ -1002,7 +1002,7 @@ void _destroy_compile_rule(struct _Maat_compile_inner_t * compile_rule) free(db_compile_rule); compile_rule->db_c_rule=NULL; } - for(i=0; iex_data_num; i++) + for(i=0; table!=NULL && iex_data_num; i++) { rule_ex_data_free(&(db_compile_rule->m_rule_head), db_compile_rule->service_defined, compile_rule->ads+i, table->ex_desc+i); compile_rule->ads[i]=NULL; diff --git a/src/inc_internal/Maat_rule_internal.h b/src/inc_internal/Maat_rule_internal.h index b2afb63..b94273d 100644 --- a/src/inc_internal/Maat_rule_internal.h +++ b/src/inc_internal/Maat_rule_internal.h @@ -46,7 +46,7 @@ typedef int atomic_t; #define MAX_PLUGIN_PER_TABLE 32 #define MAX_FOREIGN_CLMN_NUM 8 #define MAX_SCANNER_HIT_NUM 64 -#define MAX_COMPILE_EX_DATA_NUM 8 +#define MAX_COMPILE_EX_DATA_NUM 2 #define MAX_GROUP_CACHE 128 #define MAX_FAILED_NUM 128