[TD-5623]<feature>: skip compSizes when when memmove

This commit is contained in:
Ganlin Zhao 2021-08-12 09:49:31 +08:00
parent 16b2f3609c
commit ace6d9f7d0
1 changed files with 2 additions and 0 deletions

View File

@ -2713,6 +2713,8 @@ static void decompressQueryColData(SSqlRes *pRes, SQueryInfo* pQueryInfo, char *
}
int32_t tailLen = pRes->rspLen - sizeof(SRetrieveTableRsp) - decompLen;
/* Skip compSizes */
pData += numOfCols * sizeof(int32_t);
memmove(data + decompLen, pData, tailLen);
memmove(data, outputBuf, decompLen);