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

avoid invalid read/write

上级 79ac1153
...@@ -2950,8 +2950,8 @@ static int32_t sysFilte__DbName(void* arg, SNode* pNode, SArray* result) { ...@@ -2950,8 +2950,8 @@ static int32_t sysFilte__DbName(void* arg, SNode* pNode, SArray* result) {
static int32_t sysFilte__VgroupId(void* arg, SNode* pNode, SArray* result) { static int32_t sysFilte__VgroupId(void* arg, SNode* pNode, SArray* result) {
void* pVnode = ((SSTabFltArg*)arg)->pVnode; void* pVnode = ((SSTabFltArg*)arg)->pVnode;
int32_t vgId = 0; int64_t vgId = 0;
vnodeGetInfo(pVnode, NULL, &vgId); vnodeGetInfo(pVnode, NULL, (int32_t*)&vgId);
SOperatorNode* pOper = (SOperatorNode*)pNode; SOperatorNode* pOper = (SOperatorNode*)pNode;
SValueNode* pVal = (SValueNode*)pOper->pRight; SValueNode* pVal = (SValueNode*)pOper->pRight;
...@@ -2964,7 +2964,7 @@ static int32_t sysFilte__VgroupId(void* arg, SNode* pNode, SArray* result) { ...@@ -2964,7 +2964,7 @@ static int32_t sysFilte__VgroupId(void* arg, SNode* pNode, SArray* result) {
int ret = func(&vgId, &pVal->datum.i, TSDB_DATA_TYPE_BIGINT); int ret = func(&vgId, &pVal->datum.i, TSDB_DATA_TYPE_BIGINT);
if (ret == 0) return 0; if (ret == 0) return 0;
return -1; return -2;
} }
static int32_t sysFilte__TableName(void* arg, SNode* pNode, SArray* result) { static int32_t sysFilte__TableName(void* arg, SNode* pNode, SArray* result) {
void* pMeta = ((SSTabFltArg*)arg)->pMeta; void* pMeta = ((SSTabFltArg*)arg)->pMeta;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册