From 6667c7f1b027fd3bbdcd395235456d7803d5b3e6 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Mon, 14 Sep 2026 23:02:38 -0400 Subject: [PATCH] golay2312 : Initialize correction tables Initialize the Golay correction tables so the decoder starts with defined table contents before they are populated and used. This avoids undefined behavior from accessing uninitialized member storage. Found by cppcheck (uninitMemberVar). Signed-off-by: Robin Getz --- sdrbase/util/golay2312.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdrbase/util/golay2312.cpp b/sdrbase/util/golay2312.cpp index 0ad1cf7bc..9a2be0e0b 100644 --- a/sdrbase/util/golay2312.cpp +++ b/sdrbase/util/golay2312.cpp @@ -63,7 +63,9 @@ const unsigned int Golay2312::m_I12[12] = { 0b000000000001, }; -Golay2312::Golay2312() +Golay2312::Golay2312() : + m_corrPL{}, + m_corrPF{} { initG(); initH();