From 53746806498a44fad8fec517c84dc801189d3592 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Sun, 29 May 2022 00:37:18 +0800 Subject: [PATCH] fix: init buffer to avoid invalid write --- source/libs/sync/src/syncMessage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/sync/src/syncMessage.c b/source/libs/sync/src/syncMessage.c index 57cbdaaf79..0452410a20 100644 --- a/source/libs/sync/src/syncMessage.c +++ b/source/libs/sync/src/syncMessage.c @@ -869,7 +869,7 @@ SyncClientRequest* syncClientRequestFromRpcMsg2(const SRpcMsg* pRpcMsg) { } cJSON* syncClientRequest2Json(const SyncClientRequest* pMsg) { - char u64buf[128]; + char u64buf[128] = {0}; cJSON* pRoot = cJSON_CreateObject(); if (pMsg != NULL) {