[TD-5790]<fix>: taosdemo memory corrupted. (#7170)
This commit is contained in:
parent
891978882a
commit
3e62ea5041
|
@ -5182,7 +5182,7 @@ static int64_t generateStbRowData(
|
|||
dataLen += 1;
|
||||
}
|
||||
|
||||
if (dataLen > remainderBufLen)
|
||||
if (dataLen > (remainderBufLen - (DOUBLE_BUFF_LEN + 1)))
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue