From cce563b4740a1eed89a022588b00c7a2aafd786f Mon Sep 17 00:00:00 2001 From: Mark Atwood Date: Thu, 9 Jul 2026 16:29:41 -0700 Subject: [PATCH] fix: init log msg_buf to avoid uninit read --- port/posix/posix_log_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port/posix/posix_log_file.c b/port/posix/posix_log_file.c index fb9a0fc4a..a1a5e9e3e 100644 --- a/port/posix/posix_log_file.c +++ b/port/posix/posix_log_file.c @@ -271,7 +271,7 @@ int posixLogFile_Iterate(void* context, whLogIterateCb iterate_cb, char level_str[32]; char file_buf[256]; char func_buf[256]; - char msg_buf[WOLFHSM_CFG_LOG_MSG_MAX]; + char msg_buf[WOLFHSM_CFG_LOG_MSG_MAX] = {0}; unsigned long long timestamp; unsigned int line_num;