From 1baa062723e6978d1e6c9528d9d971d45764ec84 Mon Sep 17 00:00:00 2001 From: fengweihao Date: Wed, 10 May 2023 17:43:25 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=E4=BF=AE=E5=A4=8Dip=E5=BD=92=E5=B1=9E?= =?UTF-8?q?=E5=9C=B0=E8=B6=8A=E7=95=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/src/verify_matcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/src/verify_matcher.cpp b/platform/src/verify_matcher.cpp index 03ed9f1..f128373 100644 --- a/platform/src/verify_matcher.cpp +++ b/platform/src/verify_matcher.cpp @@ -326,7 +326,7 @@ void ip_location_table_new_cb(const char *table_name, int table_id, const char* char continent_abbr[VERIFY_ARRAY_MAX],continent_full[VERIFY_ARRAY_MAX]; char country_abbr[VERIFY_ARRAY_MAX],province_abbr[VERIFY_ARRAY_MAX], time_zone[VERIFY_ARRAY_MAX]; char country_full[VERIFY_ARRAY_MAX],province_full[VERIFY_ARRAY_MAX], city_full[VERIFY_ARRAY_MAX]; - char subdivision_addr[VERIFY_ARRAY_MAX]; + char subdivision_addr[VERIFY_STRING_MAX]; if(ip_location_column_num == 0) { @@ -1158,7 +1158,7 @@ int ip_location_scan(long long *result, struct ip_addr *sip, struct ip_addr *dip { size_t n_hit_result=0; int scan_ret=0, hit_cnt_ip=0; - char buff[VERIFY_ARRAY_MAX]={0}; + char buff[VERIFY_STRING_MAX * 2]={0}; struct maat_hit_path hit_path[2048]; struct ip_data_table* ip_location_client=NULL, *ip_location_server=NULL;