From bada18f5f02455b1e4a131e8dd4f3616419611d1 Mon Sep 17 00:00:00 2001 From: liuyao <54liuyao@163.com> Date: Tue, 18 Jul 2023 17:59:42 +0800 Subject: [PATCH] heap use after free --- source/libs/executor/src/timewindowoperator.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/libs/executor/src/timewindowoperator.c b/source/libs/executor/src/timewindowoperator.c index 69aaef48f4..7a743f8d33 100644 --- a/source/libs/executor/src/timewindowoperator.c +++ b/source/libs/executor/src/timewindowoperator.c @@ -3816,14 +3816,13 @@ void* decodeSSessionKey(void* buf, SSessionKey* key) { int32_t encodeSResultWindowInfo(void** buf, SResultWindowInfo* key, int32_t outLen) { int32_t tlen = 0; tlen += taosEncodeFixedBool(buf, key->isOutput); - tlen += taosEncodeBinary(buf, key->pOutputBuf, outLen); tlen += encodeSSessionKey(buf, &key->sessionWin); return tlen; } void* decodeSResultWindowInfo(void* buf, SResultWindowInfo* key, int32_t outLen) { buf = taosDecodeFixedBool(buf, &key->isOutput); - buf = taosDecodeBinary(buf, &key->pOutputBuf, outLen); + key->pOutputBuf = NULL; buf = decodeSSessionKey(buf, &key->sessionWin); return buf; }