提交 a743dcd3 编写于 作者: sangshuduo's avatar sangshuduo

fix out-of-bounds read arrary data_type[]

上级 0e9a8c0b
......@@ -343,7 +343,7 @@ int main(int argc, char *argv[]) {
if (strcasecmp(data_type[0], "BINARY") == 0 || strcasecmp(data_type[0], "BOOL") == 0) {
do_aggreFunc = false;
}
for (; count_data_type <= MAX_NUM_DATATYPE; count_data_type++) {
for (; count_data_type < MAX_NUM_DATATYPE; count_data_type++) {
if (strcasecmp(data_type[count_data_type], "") == 0) {
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册