提交 d97b3376 编写于 作者: H Haojun Liao

[td-255] fix the invalid write.

上级 047c35a4
...@@ -112,7 +112,7 @@ void taosArrayRemoveBatch(SArray *pArray, const int32_t* pData, int32_t numOfEle ...@@ -112,7 +112,7 @@ void taosArrayRemoveBatch(SArray *pArray, const int32_t* pData, int32_t numOfEle
i += 1; i += 1;
} }
assert(i == pData[numOfElems - 1] + 1 && i < size); assert(i == pData[numOfElems - 1] + 1 && i <= size);
int32_t srcIndex = pData[numOfElems - 1] + 1; int32_t srcIndex = pData[numOfElems - 1] + 1;
int32_t dstIndex = pData[numOfElems - 1] - numOfElems + 1; int32_t dstIndex = pData[numOfElems - 1] - numOfElems + 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册