Treat 0 as a valid value for some non-MAAT producer.

This commit is contained in:
zhengchao
2018-07-19 20:29:33 +08:00
parent bbee244d23
commit 45f20cccb3
2 changed files with 2 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ int get_valid_flag_offset(const char* line, enum MAAT_TABLE_TYPE type,int valid_
}
}
i++;
if(i>=strlen(line)||line[i]!='1')
if(i>=strlen(line)||(line[i]!='1'&&line[i]!='0'))// 0 is also a valid value for some non-MAAT producer.
{
return -1;
}

View File

@@ -30,7 +30,7 @@
#include "stream_fuzzy_hash.h"
#include "gram_index_engine.h"
int MAAT_FRAME_VERSION_2_2_20180705=1;
int MAAT_FRAME_VERSION_2_2_20180719=1;
const char* CHARSET_STRING[]={"NONE","gbk","big5","unicode","utf8","bin",
"unicode_ascii_esc","unicode_ascii_aligned","unicode_ncr_dec","unicode_ncr_hex","url_encode_gb2312","url_encode_utf8",""};