提交 416de48a 编写于 作者: S shenglian zhou

enhance test case and fix memory invalid write

上级 01fb092e
...@@ -683,7 +683,7 @@ static void columnwiseMergeSortImpl(tOrderDescriptor *pDescriptor, int32_t numOf ...@@ -683,7 +683,7 @@ static void columnwiseMergeSortImpl(tOrderDescriptor *pDescriptor, int32_t numOf
int32_t* indices = malloc(numOfRows * sizeof(int32_t)); int32_t* indices = malloc(numOfRows * sizeof(int32_t));
int32_t* aux = malloc(numOfRows * sizeof(int32_t)); int32_t* aux = malloc(numOfRows * sizeof(int32_t));
for (int32_t i = 0; i <= numOfRows; ++i) { for (int32_t i = 0; i < numOfRows; ++i) {
indices[i] = i; indices[i] = i;
} }
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册