[TD-225] add extra bytes during malloc memory.

This commit is contained in:
Haojun Liao 2020-12-25 18:08:47 +08:00
parent 1c82ba52b5
commit ca56f33bb3
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ tFilePage* getNewDataBuf(SDiskbasedResultBuf* pResultBuf, int32_t groupId, int32
// allocate buf
if (availablePage == NULL) {
pi->pData = calloc(1, pResultBuf->pageSize + POINTER_BYTES);
pi->pData = calloc(1, pResultBuf->pageSize + POINTER_BYTES + 2); // add extract bytes in case of zipped buffer increased.
} else {
pi->pData = availablePage;
}