From 345a47ceb65be6240992e17c71928238d38c3db4 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Mon, 14 Sep 2026 22:57:55 -0400 Subject: [PATCH] scopevis : Initialize conversion buffer size Initialize the conversion buffer size so a default-constructed ConvertBuffers instance has a defined size before the value is used. This avoids undefined behavior from reading an uninitialized member. Found by cppcheck (uninitMemberVar). Signed-off-by: Robin Getz --- sdrbase/dsp/scopevis.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sdrbase/dsp/scopevis.h b/sdrbase/dsp/scopevis.h index da1023c78..2b487f6d3 100644 --- a/sdrbase/dsp/scopevis.h +++ b/sdrbase/dsp/scopevis.h @@ -601,6 +601,7 @@ private: struct ConvertBuffers { ConvertBuffers(uint32_t nbStreams = 1) : + m_size(0), m_convertBuffers(nbStreams) {}