From f208eefdf2ace0af8a222f1086f1c486822ba0d3 Mon Sep 17 00:00:00 2001 From: slzhou Date: Tue, 19 Sep 2023 16:21:44 +0800 Subject: [PATCH] fix: fix sanitizer error --- source/libs/command/src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/command/src/command.c b/source/libs/command/src/command.c index 14962497e4..b23b43731b 100644 --- a/source/libs/command/src/command.c +++ b/source/libs/command/src/command.c @@ -89,7 +89,7 @@ static int32_t buildDescResultDataBlock(SSDataBlock** pOutput) { } static int32_t setDescResultIntoDataBlock(bool sysInfoUser, SSDataBlock* pBlock, int32_t numOfRows, STableMeta* pMeta, int8_t biMode) { - blockDataEnsureCapacity(pBlock, numOfRows); + blockDataEnsureCapacity(pBlock, numOfRows + 1); pBlock->info.rows = 0; // field