加强Maat_set_scan_status的输入参数检查。
This commit is contained in:
@@ -1487,6 +1487,10 @@ int Maat_set_scan_status(Maat_feather_t feather,scan_status_t* mid,enum MAAT_SCA
|
|||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
case MAAT_SET_SCAN_DISTRICT:
|
case MAAT_SET_SCAN_DISTRICT:
|
||||||
|
if(value==NULL||size<=0)
|
||||||
|
{
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
map_ret=map_str2int(_feather->scanner->district_map,(const char*)value,&(_mid->district_id));
|
map_ret=map_str2int(_feather->scanner->district_map,(const char*)value,&(_mid->district_id));
|
||||||
if(map_ret<0)
|
if(map_ret<0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
#include "mesa_fuzzy.h"
|
#include "mesa_fuzzy.h"
|
||||||
#include "great_index_engine.h"
|
#include "great_index_engine.h"
|
||||||
|
|
||||||
int MAAT_FRAME_VERSION_1_8_2016830_TABLE_CONJ=1;
|
int MAAT_FRAME_VERSION_1_8_20160907_TABLE_CONJ=1;
|
||||||
const char *maat_module="MAAT Frame";
|
const char *maat_module="MAAT Frame";
|
||||||
|
|
||||||
const char* CHARSET_STRING[]={"NONE","gbk","big5","unicode","utf8","bin",
|
const char* CHARSET_STRING[]={"NONE","gbk","big5","unicode","utf8","bin",
|
||||||
|
|||||||
Reference in New Issue
Block a user