[TD-4872]<fix>: fix tasodemo buffer overflow with -O3

This commit is contained in:
Huo Linhe 2021-06-24 11:36:41 +08:00
parent ebd2fdc156
commit ff492acbbf
1 changed files with 1 additions and 1 deletions

View File

@ -5103,7 +5103,7 @@ static int32_t generateStbDataTail(
} else { } else {
retLen = getRowDataFromSample( retLen = getRowDataFromSample(
data, data,
remainderBufLen, remainderBufLen < MAX_DATA_SIZE ? remainderBufLen : MAX_DATA_SIZE,
startTime + superTblInfo->timeStampStep * k, startTime + superTblInfo->timeStampStep * k,
superTblInfo, superTblInfo,
pSamplePos); pSamplePos);