From eb7c852bcbb20abdb1bd073fef0c8dd8fbf64b05 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Fri, 10 Dec 2021 08:34:57 +0800 Subject: [PATCH] update --- src/client/src/tscParseInsert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscParseInsert.c b/src/client/src/tscParseInsert.c index 76f05ad99a..ae9b4f3ef0 100644 --- a/src/client/src/tscParseInsert.c +++ b/src/client/src/tscParseInsert.c @@ -670,7 +670,7 @@ int32_t tsParseValues(char **str, STableDataBlocks *pDataBlock, int maxRows, SIn } if (isConverted) { void *convertedSMemRow = pDataBlock->pData + pDataBlock->size; - memcpy(convertedSMemRow - extendedRowSize, convertedSMemRow, memRowTLen(convertedSMemRow)); + memcpy(POINTER_SHIFT(convertedSMemRow, -extendedRowSize), convertedSMemRow, (size_t)memRowTLen(convertedSMemRow)); } if ((*numOfRows) <= 0) { @@ -1807,7 +1807,7 @@ static void parseFileSendDataBlock(void *param, TAOS_RES *tres, int32_t numOfRow } if (isConverted) { void *convertedSMemRow = pTableDataBlock->pData + pTableDataBlock->size; - memcpy(convertedSMemRow - extendedRowSize, convertedSMemRow, memRowTLen(convertedSMemRow)); + memcpy(POINTER_SHIFT(convertedSMemRow, -extendedRowSize), convertedSMemRow, (size_t)memRowTLen(convertedSMemRow)); } tfree(tokenBuf); -- GitLab