提交 e5be6663 编写于 作者: dengyihao's avatar dengyihao

avoid invalid read/write

上级 471b581c
......@@ -2987,7 +2987,7 @@ static int32_t sysFilte__TableName(void* arg, SNode* pNode, SArray* result) {
int32_t ret = metaFilterCreateTime(pMeta, &param, result);
if (ret == 0) return 0;
return -1;
return -2;
}
static int32_t sysFilte__CreateTime(void* arg, SNode* pNode, SArray* result) {
......@@ -3016,8 +3016,8 @@ static int32_t sysFilte__Ncolumn(void* arg, SNode* pNode, SArray* result) {
bool reverse = false;
__optSysFilter func = optSysGetFilterFunc(pOper->opType, &reverse);
if (func == NULL) return -1;
return 0;
if (func == NULL) return -2;
return -2;
}
static int32_t sysFilte__Ttl(void* arg, SNode* pNode, SArray* result) {
......@@ -3028,8 +3028,8 @@ static int32_t sysFilte__Ttl(void* arg, SNode* pNode, SArray* result) {
bool reverse = false;
__optSysFilter func = optSysGetFilterFunc(pOper->opType, &reverse);
if (func == NULL) return -1;
return 0;
if (func == NULL) return -2;
return -2;
}
static int32_t sysFilte__STableName(void* arg, SNode* pNode, SArray* result) {
void* pMeta = ((SSTabFltArg*)arg)->pMeta;
......@@ -3039,7 +3039,7 @@ static int32_t sysFilte__STableName(void* arg, SNode* pNode, SArray* result) {
bool reverse = false;
__optSysFilter func = optSysGetFilterFunc(pOper->opType, &reverse);
if (func == NULL) return -1;
if (func == NULL) return -2;
return 0;
}
static int32_t sysFilte__Uid(void* arg, SNode* pNode, SArray* result) {
......@@ -3050,8 +3050,8 @@ static int32_t sysFilte__Uid(void* arg, SNode* pNode, SArray* result) {
bool reverse = false;
__optSysFilter func = optSysGetFilterFunc(pOper->opType, &reverse);
if (func == NULL) return -1;
return 0;
if (func == NULL) return -2;
return -2;
}
static int32_t sysFilte__Type(void* arg, SNode* pNode, SArray* result) {
void* pMeta = ((SSTabFltArg*)arg)->pMeta;
......@@ -3061,8 +3061,8 @@ static int32_t sysFilte__Type(void* arg, SNode* pNode, SArray* result) {
bool reverse = false;
__optSysFilter func = optSysGetFilterFunc(pOper->opType, &reverse);
if (func == NULL) return -1;
return 0;
if (func == NULL) return -2;
return -2;
}
static int32_t sysChkFilter__Comm(SNode* pNode) {
// impl
......@@ -3070,7 +3070,7 @@ static int32_t sysChkFilter__Comm(SNode* pNode) {
EOperatorType opType = pOper->opType;
if (opType != OP_TYPE_EQUAL && opType != OP_TYPE_LOWER_EQUAL && opType != OP_TYPE_LOWER_THAN &&
OP_TYPE_GREATER_EQUAL && opType != OP_TYPE_GREATER_THAN) {
return -1;
return -2;
}
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册