Merge pull request #5822 from taosdata/hotfix/TD-3732

[TD-3732]mem overflow issue
This commit is contained in:
haojun Liao 2021-04-16 11:18:07 +08:00 committed by GitHub
commit 21a9797dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6326,7 +6326,7 @@ void tscPrintSelectClause(SSqlObj* pSql, int32_t subClauseIndex) {
int32_t totalBufSize = 1024; int32_t totalBufSize = 1024;
char str[1024] = {0}; char str[1024+1] = {0};
int32_t offset = 0; int32_t offset = 0;
offset += sprintf(str, "num:%d [", size); offset += sprintf(str, "num:%d [", size);