fix invalid read-write caused by getFuncEnv

This commit is contained in:
Ganlin Zhao 2022-06-13 16:14:16 +08:00
parent 4036d9714e
commit f7c20f6c0d
1 changed files with 1 additions and 1 deletions

View File

@ -2662,7 +2662,7 @@ bool getTopBotFuncEnv(SFunctionNode* pFunc, SFuncExecEnv* pEnv) {
bool getTopBotMergeFuncEnv(SFunctionNode* pFunc, SFuncExecEnv* pEnv) { bool getTopBotMergeFuncEnv(SFunctionNode* pFunc, SFuncExecEnv* pEnv) {
//intermediate result is binary and length contains VAR header size //intermediate result is binary and length contains VAR header size
pEnv->calcMemSize = pFunc->node.resType.bytes - VARSTR_HEADER_SIZE; pEnv->calcMemSize = pFunc->node.resType.bytes;
return true; return true;
} }