From 6c0bbe684b0e2bd1a150c4540efc158921278f41 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Tue, 15 Nov 2022 22:28:03 +0800 Subject: [PATCH] fix: heap-use-after-free in syncNodeEqPingTimer --- source/libs/sync/src/syncMain.c | 6 +++--- tests/parallel_test/cases.task | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/libs/sync/src/syncMain.c b/source/libs/sync/src/syncMain.c index c39558ca1d..c623628978 100644 --- a/source/libs/sync/src/syncMain.c +++ b/source/libs/sync/src/syncMain.c @@ -1842,7 +1842,7 @@ static void syncNodeEqPingTimer(void* param, void* tmrId) { return; } - sNTrace(pNode, "enqueue ping msg"); + sTrace(pNode, "enqueue ping msg"); code = pNode->syncEqMsg(pNode->msgcb, &rpcMsg); if (code != 0) { sError("failed to sync enqueue ping msg since %s", terrstr()); @@ -1870,7 +1870,7 @@ static void syncNodeEqElectTimer(void* param, void* tmrId) { } SyncTimeout* pTimeout = rpcMsg.pCont; - sNTrace(pNode, "enqueue elect msg lc:%" PRId64, pTimeout->logicClock); + sTrace(pNode, "enqueue elect msg lc:%" PRId64, pTimeout->logicClock); code = pNode->syncEqMsg(pNode->msgcb, &rpcMsg); if (code != 0) { @@ -1894,7 +1894,7 @@ static void syncNodeEqHeartbeatTimer(void* param, void* tmrId) { return; } - sNTrace(pNode, "enqueue heartbeat timer"); + sTrace(pNode, "enqueue heartbeat timer"); code = pNode->syncEqMsg(pNode->msgcb, &rpcMsg); if (code != 0) { sError("failed to enqueue heartbeat msg since %s", terrstr()); diff --git a/tests/parallel_test/cases.task b/tests/parallel_test/cases.task index e4edc43600..f0dff430b3 100644 --- a/tests/parallel_test/cases.task +++ b/tests/parallel_test/cases.task @@ -215,7 +215,7 @@ ,,y,script,./test.sh -f tsim/stream/basic2.sim ,,,script,./test.sh -f tsim/stream/drop_stream.sim ,,y,script,./test.sh -f tsim/stream/fillHistoryBasic1.sim -,,y,script,./test.sh -f tsim/stream/fillHistoryBasic2.sim +,,,script,./test.sh -f tsim/stream/fillHistoryBasic2.sim ,,y,script,./test.sh -f tsim/stream/fillHistoryBasic3.sim ,,y,script,./test.sh -f tsim/stream/distributeInterval0.sim ,,y,script,./test.sh -f tsim/stream/distributeIntervalRetrive0.sim