From 6fa5812a69ce9978d101f31c6495ae1a5940b011 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:03:13 -0400 Subject: [PATCH 01/60] ft8/ft8 : Initialize uninitialized constructor members Initialize pass_, hack_0_, and hack_1_ in the FT8 constructor initializer list. cppcheck identified these members as potentially uninitialized. Initializing them makes the constructor state explicit and reduces the risk of undefined behavior if they are read before being assigned. Signed-off-by: Robin Getz --- ft8/ft8.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ft8/ft8.cpp b/ft8/ft8.cpp index 28d91b273..8b00e840d 100644 --- a/ft8/ft8.cpp +++ b/ft8/ft8.cpp @@ -84,7 +84,10 @@ FT8::FT8( CallbackInterface *cb, const std::vector &prevdecs, FFTEngine *fftEngine -) +): + pass_(0), + hack_0_(0.0f), + hack_1_(0.0f) { samples_ = samples; min_hz_ = min_hz; From 45e18f328d16e1fcf436d12eb46da5ea75917e27 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:04:31 -0400 Subject: [PATCH 02/60] httpserver: Initialize HttpCookie httpOnly member Initialize httpOnly in the HttpCookie constructor initializer list. cppcheck identified httpOnly as potentially uninitialized. Signed-off-by: Robin Getz --- httpserver/httpcookie.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/httpserver/httpcookie.cpp b/httpserver/httpcookie.cpp index 0f8e5cbd1..ee4ba58f4 100644 --- a/httpserver/httpcookie.cpp +++ b/httpserver/httpcookie.cpp @@ -28,7 +28,8 @@ HttpCookie::HttpCookie(const QByteArray name, const QByteArray value, const int this->version=1; } -HttpCookie::HttpCookie(const QByteArray source) +HttpCookie::HttpCookie(const QByteArray source) : + httpOnly(false) { version=1; maxAge=0; From 93fef68e7198bc2e87b38beeefc7ab56cbac7651 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:06:19 -0400 Subject: [PATCH 03/60] modemm17/FirFilter: Remove pessimizing move in makeFirFilter Remove unnecessary std::move() from the return of a temporary, allowing copy elision and removing the compiler warning. Signed-off-by: Robin Getz --- modemm17/FirFilter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modemm17/FirFilter.h b/modemm17/FirFilter.h index 97990f156..63b643fdd 100644 --- a/modemm17/FirFilter.h +++ b/modemm17/FirFilter.h @@ -51,7 +51,7 @@ private: template BaseFirFilter makeFirFilter(const std::array& taps) { - return std::move(BaseFirFilter(taps)); + return BaseFirFilter(taps); } From 61a048e08cd72a3285c484af5629fc5127b9ddfd Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:07:23 -0400 Subject: [PATCH 04/60] modemm17/M17FrameDecoder: Initialize M17 decoder output buffer Initialize output_buffer in the M17FrameDecoder constructor. Found by cppcheck. Signed-off-by: Robin Getz --- modemm17/M17FrameDecoder.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modemm17/M17FrameDecoder.h b/modemm17/M17FrameDecoder.h index ed9c033b7..1dc443250 100644 --- a/modemm17/M17FrameDecoder.h +++ b/modemm17/M17FrameDecoder.h @@ -107,7 +107,8 @@ struct M17FrameDecoder M17FrameDecoder(callback_t callback) : crc_(0x5935, 0xFFFF), - callback_(callback) + callback_(callback), + output_buffer{} {} void update_state(std::array& lsf_output) From 5489999120238fb4dca4482d6a01a500a19b8ece Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:08:16 -0400 Subject: [PATCH 05/60] modemm17/PolynomialInterleaver: Initialize polynomial interleaver buffer Value-initialize the interleaver buffer to avoid uninitialized data. Found by cppcheck. Signed-off-by: Robin Getz --- modemm17/PolynomialInterleaver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modemm17/PolynomialInterleaver.h b/modemm17/PolynomialInterleaver.h index 55960df68..bf7ae2e0a 100644 --- a/modemm17/PolynomialInterleaver.h +++ b/modemm17/PolynomialInterleaver.h @@ -16,7 +16,7 @@ struct PolynomialInterleaver using buffer_t = std::array; using bytes_t = std::array; - alignas(16) buffer_t buffer_; + alignas(16) buffer_t buffer_{}; size_t index(size_t i) { From 93146a9170267dd2fb96625b2e848becba0ef207 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:09:42 -0400 Subject: [PATCH 06/60] modemm17: Initialize AX.25 raw frame type Initialize raw_type_ in the ax25_frame constructor. Found by cppcheck. Signed-off-by: Robin Getz --- modemm17/ax25_frame.h | 1 + 1 file changed, 1 insertion(+) diff --git a/modemm17/ax25_frame.h b/modemm17/ax25_frame.h index b44a518ed..3a8d52388 100644 --- a/modemm17/ax25_frame.h +++ b/modemm17/ax25_frame.h @@ -210,6 +210,7 @@ public: source_(), repeaters_(), type_(UNDEFINED), + raw_type_(0), info_(), fcs_(-1), crc_(0), From feae8a3f22e904f46d3c7a2c24014a3df59af0ee Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:11:11 -0400 Subject: [PATCH 07/60] demoddatv/leansdr/dvb: Initialize viterbi sync array Value-initialize the sync array to avoid uninitialized members. Found by cppcheck. Signed-off-by: Robin Getz --- plugins/channelrx/demoddatv/leansdr/dvb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/channelrx/demoddatv/leansdr/dvb.h b/plugins/channelrx/demoddatv/leansdr/dvb.h index e8d207aaa..ed3457cb8 100644 --- a/plugins/channelrx/demoddatv/leansdr/dvb.h +++ b/plugins/channelrx/demoddatv/leansdr/dvb.h @@ -1665,7 +1665,7 @@ struct viterbi_sync : runnable // that certain rot/conj combinations are equivalent to // polarity inversion. We could reduce nsyncs. - syncs = new sync[nsyncs]; + syncs = new sync[nsyncs]{}; for (int s = 0; s < nsyncs; ++s) { From fca0e7108679fc6572e94f0f8c221c66a3ae08fd Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:12:12 -0400 Subject: [PATCH 08/60] demodmeshcore: Initialize network manager pointer Initialize m_networkManager before it is assigned in the constructor. Found by cppcheck. Signed-off-by: Robin Getz --- plugins/channelrx/demodmeshcore/meshcoredemod.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/channelrx/demodmeshcore/meshcoredemod.cpp b/plugins/channelrx/demodmeshcore/meshcoredemod.cpp index 6175f025f..df8a676e9 100644 --- a/plugins/channelrx/demodmeshcore/meshcoredemod.cpp +++ b/plugins/channelrx/demodmeshcore/meshcoredemod.cpp @@ -83,7 +83,8 @@ MeshcoreDemod::MeshcoreDemod(DeviceAPI* deviceAPI) : m_lastMsgHeaderParityStatus(0), m_lastMsgPayloadCRC(false), m_lastMsgPayloadParityStatus(0), - m_udpSink(this, 256) + m_udpSink(this, 256), + m_networkManager(nullptr) { setObjectName(m_channelId); applySettings(m_settings, true); From 3d7d4afde71a3709c0809e362ee3dddbe12ffc62 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:12:47 -0400 Subject: [PATCH 09/60] remotetcpsink: demodmeshcore: Initialize network manager pointer Initialize m_networkManager before it is assigned in the constructor. Found by cppcheck. Signed-off-by: Robin Getz --- plugins/channelrx/remotetcpsink/remotetcpsink.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/channelrx/remotetcpsink/remotetcpsink.cpp b/plugins/channelrx/remotetcpsink/remotetcpsink.cpp index 5cd5cf40f..e1f98f949 100644 --- a/plugins/channelrx/remotetcpsink/remotetcpsink.cpp +++ b/plugins/channelrx/remotetcpsink/remotetcpsink.cpp @@ -55,6 +55,7 @@ RemoteTCPSink::RemoteTCPSink(DeviceAPI *deviceAPI) : m_deviceAPI(deviceAPI), m_basebandSampleRate(0), m_centerFrequency(0), + m_networkManager(nullptr), m_clients(0), m_removeRequest(nullptr) { From 4730ea54497bd483defb9355d8a4f67dff0aa623 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:13:37 -0400 Subject: [PATCH 10/60] aprs: Initialize packet count Initialize m_packetCount in the APRS constructor. Found by cppcheck. Signed-off-by: Robin Getz --- plugins/feature/aprs/aprs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/feature/aprs/aprs.cpp b/plugins/feature/aprs/aprs.cpp index 8025960a1..6eef6410a 100644 --- a/plugins/feature/aprs/aprs.cpp +++ b/plugins/feature/aprs/aprs.cpp @@ -44,6 +44,7 @@ const char* const APRS::m_featureId = "APRS"; APRS::APRS(WebAPIAdapterInterface *webAPIAdapterInterface) : Feature(m_featureIdURI, webAPIAdapterInterface), m_thread(nullptr), + m_packetCount(0), m_worker(nullptr), m_availableChannelHandler(APRSSettings::m_pipeURIs, QStringList{"packets"}, "RTMF", this) { From 3fed075bb3ffde1961bac1e0d71423ef5afa385d Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:14:22 -0400 Subject: [PATCH 11/60] metismiso: Initialize Metis buffer index Initialize metisBufferIndex in the MetisMISOUDPHandler constructor. Found by cppcheck. Signed-off-by: Robin Getz --- plugins/samplemimo/metismiso/metismisoudphandler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/samplemimo/metismiso/metismisoudphandler.cpp b/plugins/samplemimo/metismiso/metismisoudphandler.cpp index a5f458766..0ebeb1d65 100644 --- a/plugins/samplemimo/metismiso/metismisoudphandler.cpp +++ b/plugins/samplemimo/metismiso/metismisoudphandler.cpp @@ -42,6 +42,7 @@ MetisMISOUDPHandler::MetisMISOUDPHandler(SampleMIFifo *sampleMIFifo, SampleMOFif m_commandBase(0), m_rxFrame(0), m_txFrame(0), + metisBufferIndex(0), m_receiveSequence(0), m_receiveSequenceError(0), m_ptt(false), From e0cf8c5d3382bf61ad708dce674a6d5780d78c07 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:15:08 -0400 Subject: [PATCH 12/60] qrtplib: Initialize RTCP APP data length Initialize appdatalen in the RTCPAPPPacket constructor. Found by cppcheck. Signed-off-by: Robin Getz --- qrtplib/rtcpapppacket.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qrtplib/rtcpapppacket.cpp b/qrtplib/rtcpapppacket.cpp index 07737797e..94217fb55 100644 --- a/qrtplib/rtcpapppacket.cpp +++ b/qrtplib/rtcpapppacket.cpp @@ -36,7 +36,8 @@ namespace qrtplib { RTCPAPPPacket::RTCPAPPPacket(uint8_t *data, std::size_t datalength) : - RTCPPacket(APP, data, datalength) + RTCPPacket(APP, data, datalength), + appdatalen(0) { knownformat = false; From b1d999ac4c23b2865a6016523862b866cf535327 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:15:45 -0400 Subject: [PATCH 13/60] qrtplib: Initialize RTCP packet builder state Initialize RTCPPacketBuilder members in the constructor initializer list. Found by cppcheck. Signed-off-by: Robin Getz --- qrtplib/rtcppacketbuilder.cpp | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/qrtplib/rtcppacketbuilder.cpp b/qrtplib/rtcppacketbuilder.cpp index 70cd75cd1..0ad7e9982 100644 --- a/qrtplib/rtcppacketbuilder.cpp +++ b/qrtplib/rtcppacketbuilder.cpp @@ -41,7 +41,27 @@ namespace qrtplib { RTCPPacketBuilder::RTCPPacketBuilder(RTPSources &s, RTPPacketBuilder &pb) : - sources(s), rtppacketbuilder(pb), prevbuildtime(0, 0), transmissiondelay(0, 0) + sources(s), + rtppacketbuilder(pb), + maxpacketsize(0), + timestampunit(0.0), + firstpacket(false), + prevbuildtime(0, 0), + transmissiondelay(0, 0), + interval_name(0), + interval_email(0), + interval_location(0), + interval_phone(0), + interval_tool(0), + interval_note(0), + doname(false), + doemail(false), + doloc(false), + dophone(false), + dotool(false), + donote(false), + processingsdes(false), + sdesbuildcount(0) { init = false; timeinit.Dummy(); From 917a04d7d3dfb988705e9b593b8afcb5c87e2258 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:16:15 -0400 Subject: [PATCH 14/60] qrtplib: Initialize RTP hash table element Initialize curhashelem in the RTPKeyHashTable constructor. Found by cppcheck. Signed-off-by: Robin Getz --- qrtplib/rtpkeyhashtable.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qrtplib/rtpkeyhashtable.h b/qrtplib/rtpkeyhashtable.h index 622d97414..fea822227 100644 --- a/qrtplib/rtpkeyhashtable.h +++ b/qrtplib/rtpkeyhashtable.h @@ -124,7 +124,8 @@ private: }; template -inline RTPKeyHashTable::RTPKeyHashTable() +inline RTPKeyHashTable::RTPKeyHashTable() : + curhashelem(0) { for (int i = 0; i < hashsize; i++) table[i] = 0; From 86a72c72cb04843af58cd181579633c744fac6a5 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:17:53 -0400 Subject: [PATCH 15/60] qrtplib: Initialize RTP session state Initialize RTPSession members in the constructor initializer list. Found by cppcheck. Signed-off-by: Robin Getz --- qrtplib/rtpsession.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/qrtplib/rtpsession.cpp b/qrtplib/rtpsession.cpp index cdf0f3e2a..aaa67b455 100644 --- a/qrtplib/rtpsession.cpp +++ b/qrtplib/rtpsession.cpp @@ -56,6 +56,20 @@ namespace qrtplib RTPSession::RTPSession(RTPRandom *r) : rtprnd(GetRandomNumberGenerator(r)), + rtptrans(nullptr), + deletetransmitter(false), + usingpollthread(false), + acceptownpackets(false), + useSR_BYEifpossible(false), + maxpacksize(0), + sessionbandwidth(0.0), + controlfragment(0.0), + sendermultiplier(0.0), + byemultiplier(0.0), + membermultiplier(0.0), + collisionmultiplier(0.0), + notemultiplier(0.0), + sentpackets(false), sources(*this), packetbuilder(*rtprnd), rtcpsched(sources, *rtprnd), From d775251bacc12e946e926dd9a78615f575a00147 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:18:29 -0400 Subject: [PATCH 16/60] radiosonde: Initialize RS41 measurement fields Initialize RS41 measurement fields in the constructor. Found by cppcheck. Signed-off-by: Robin Getz --- sdrbase/util/radiosonde.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sdrbase/util/radiosonde.cpp b/sdrbase/util/radiosonde.cpp index 4cc3603c7..5b4b97727 100644 --- a/sdrbase/util/radiosonde.cpp +++ b/sdrbase/util/radiosonde.cpp @@ -33,6 +33,19 @@ RS41Frame::RS41Frame(const QByteArray ba) : m_maxSubframeNumber(0), m_subframeNumber(0), m_measValid(false), + m_tempMain(0), + m_tempRef1(0), + m_tempRef2(0), + m_humidityMain(0), + m_humidityRef1(0), + m_humidityRef2(0), + m_humidityTempMain(0), + m_humidityTempRef1(0), + m_humidityTempRef2(0), + m_pressureMain(0), + m_pressureRef1(0), + m_pressureRef2(0), + m_pressureTemp(0.0), m_gpsInfoValid(false), m_posValid(false), m_latitude(0.0), From 533ee868663b233ffda1796eec19ff38bb5328f4 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:18:59 -0400 Subject: [PATCH 17/60] sdrbase: Initialize serial port directory list Initialize namelist before passing it to scandir(). Found by cppcheck. Signed-off-by: Robin Getz --- sdrbase/util/serialutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdrbase/util/serialutil.cpp b/sdrbase/util/serialutil.cpp index 4eb4d2c50..3b96b54b0 100644 --- a/sdrbase/util/serialutil.cpp +++ b/sdrbase/util/serialutil.cpp @@ -58,7 +58,7 @@ void SerialUtil::getComPorts(std::vector& comPorts, const std::stri void SerialUtil::getComPorts(std::vector& comPorts, const std::string& regexStr) { int n; - struct dirent **namelist; + struct dirent **namelist = nullptr; comPorts.clear(); const char* sysdir = "/sys/class/tty/"; struct stat fileStat; From e7a74ba66ae6490d9ab484acfffad2f1e6ae8ce9 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:19:55 -0400 Subject: [PATCH 18/60] sdrgui: Initialize device workspace index Initialize m_workspaceIndex in the DeviceGUI constructor. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/device/devicegui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sdrgui/device/devicegui.cpp b/sdrgui/device/devicegui.cpp index 671ff7f8e..ba473fa36 100644 --- a/sdrgui/device/devicegui.cpp +++ b/sdrgui/device/devicegui.cpp @@ -41,6 +41,7 @@ DeviceGUI::DeviceGUI(QWidget *parent) : m_deviceUISet(nullptr), m_deviceType(DeviceRx), m_deviceSetIndex(0), + m_workspaceIndex(0), m_contextMenuType(ContextMenuNone), m_resizer(this), m_drag(false), From 3f76b8979a77d4b10e66716cbfcadb5aa60a4ef6 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:20:28 -0400 Subject: [PATCH 19/60] sdrgui: Initialize device selection state Initialize selected device sequence and item index in DeviceUISet. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/device/deviceuiset.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdrgui/device/deviceuiset.cpp b/sdrgui/device/deviceuiset.cpp index 55986e4c0..d46b5bfe3 100644 --- a/sdrgui/device/deviceuiset.cpp +++ b/sdrgui/device/deviceuiset.cpp @@ -47,7 +47,9 @@ #include "deviceuiset.h" -DeviceUISet::DeviceUISet(int deviceSetIndex, DeviceSet *deviceSet) +DeviceUISet::DeviceUISet(int deviceSetIndex, DeviceSet *deviceSet) : + m_selectedDeviceSequence(0), + m_selectedDeviceItemImdex(0) { m_spectrum = new GLSpectrum(); m_spectrum->setIsDeviceSpectrum(true); From be7329f10ec36142a1be8ef88b2f530b554afcde Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:21:01 -0400 Subject: [PATCH 20/60] sdrgui: Initialize feature pointer Initialize m_feature in the FeatureGUI constructor. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/feature/featuregui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sdrgui/feature/featuregui.cpp b/sdrgui/feature/featuregui.cpp index a74dc5c29..8dc025b77 100644 --- a/sdrgui/feature/featuregui.cpp +++ b/sdrgui/feature/featuregui.cpp @@ -41,6 +41,7 @@ FeatureGUI::FeatureGUI(QWidget *parent) : WorkspaceWindow(parent), + m_feature(nullptr), m_featureIndex(0), m_contextMenuType(ContextMenuNone), m_resizer(this), From aecd12ac7f58080b186ca2bc60419e2ac36a838c Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:21:40 -0400 Subject: [PATCH 21/60] sdrgui: Initialize channel stream index Initialize m_streamIndex in BasicChannelSettingsDialog. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/gui/basicchannelsettingsdialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sdrgui/gui/basicchannelsettingsdialog.cpp b/sdrgui/gui/basicchannelsettingsdialog.cpp index b418a4013..b6660a0f7 100644 --- a/sdrgui/gui/basicchannelsettingsdialog.cpp +++ b/sdrgui/gui/basicchannelsettingsdialog.cpp @@ -32,6 +32,7 @@ BasicChannelSettingsDialog::BasicChannelSettingsDialog(ChannelMarker* marker, QW QDialog(parent), ui(new Ui::BasicChannelSettingsDialog), m_channelMarker(marker), + m_streamIndex(0), m_hasChanged(false) { ui->setupUi(this); From 2b99808cc39d27b8e6be0b48922dfb20a2441955 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:22:06 -0400 Subject: [PATCH 22/60] sdrgui: Initialize reverse API settings Initialize reverse API fields in BasicFeatureSettingsDialog. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/gui/basicfeaturesettingsdialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdrgui/gui/basicfeaturesettingsdialog.cpp b/sdrgui/gui/basicfeaturesettingsdialog.cpp index 8378c2fa0..d24b91b92 100644 --- a/sdrgui/gui/basicfeaturesettingsdialog.cpp +++ b/sdrgui/gui/basicfeaturesettingsdialog.cpp @@ -29,6 +29,10 @@ BasicFeatureSettingsDialog::BasicFeatureSettingsDialog(QWidget *parent) : QDialog(parent), ui(new Ui::BasicFeatureSettingsDialog), + m_useReverseAPI(false), + m_reverseAPIPort(0), + m_reverseAPIFeatureSetIndex(0), + m_reverseAPIFeatureIndex(0), m_hasChanged(false) { ui->setupUi(this); From 4e215495eb73931304a9f9d9afbaad871f3e1925 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:22:44 -0400 Subject: [PATCH 23/60] sdrgui: Initialize configuration list Initialize m_configurations in ConfigurationsDialog. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/gui/configurationsdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdrgui/gui/configurationsdialog.cpp b/sdrgui/gui/configurationsdialog.cpp index 6920bfe7e..68c120535 100644 --- a/sdrgui/gui/configurationsdialog.cpp +++ b/sdrgui/gui/configurationsdialog.cpp @@ -29,7 +29,8 @@ ConfigurationsDialog::ConfigurationsDialog(bool openOnly, QWidget* parent) : QDialog(parent), - ui(new Ui::ConfigurationsDialog) + ui(new Ui::ConfigurationsDialog), + m_configurations(nullptr) { ui->setupUi(this); if (openOnly) From a8a42112fd824725cb137c0be7e0fccebb412f43 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:23:13 -0400 Subject: [PATCH 24/60] sdrgui: Initialize course deviation mode Initialize m_mode in CourseDeviationIndicator. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/gui/coursedeviationindicator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdrgui/gui/coursedeviationindicator.cpp b/sdrgui/gui/coursedeviationindicator.cpp index 684a02040..1dd555c66 100644 --- a/sdrgui/gui/coursedeviationindicator.cpp +++ b/sdrgui/gui/coursedeviationindicator.cpp @@ -24,7 +24,8 @@ CourseDeviationIndicator::CourseDeviationIndicator(QWidget *parent) : QWidget(parent), m_localizerDDM(0.0f), - m_glideSlopeDDM(0.0f) + m_glideSlopeDDM(0.0f), + m_mode(LOC) { } From 2e25451a265a989cb71034e7f52cd49872035b9d Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:23:42 -0400 Subject: [PATCH 25/60] sdrgui: Initialize device set selection Initialize m_selectedDeviceSetIndex in DeviceSetSelectionDialog. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/gui/devicesetselectiondialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sdrgui/gui/devicesetselectiondialog.cpp b/sdrgui/gui/devicesetselectiondialog.cpp index 769621f19..e5228749f 100644 --- a/sdrgui/gui/devicesetselectiondialog.cpp +++ b/sdrgui/gui/devicesetselectiondialog.cpp @@ -30,6 +30,7 @@ DeviceSetSelectionDialog::DeviceSetSelectionDialog(std::vector& de ui(new Ui::WorkspaceSelectionDialog), m_deviceUIs(deviceUIs), m_channelDeviceSetIndex(channelDeviceSetIndex), + m_selectedDeviceSetIndex(0), m_hasChanged(false) { ui->setupUi(this); From 39863ce93294c1b47938abf70925cc04e93382d7 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:24:20 -0400 Subject: [PATCH 26/60] sdrgui: Initialize feature layout orientation Initialize m_orientation in the FeatureLayout constructor. Found by coverity. Signed-off-by: Robin Getz --- sdrgui/gui/featurelayout.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sdrgui/gui/featurelayout.cpp b/sdrgui/gui/featurelayout.cpp index 9b116fc3a..d46b7c68a 100644 --- a/sdrgui/gui/featurelayout.cpp +++ b/sdrgui/gui/featurelayout.cpp @@ -20,8 +20,11 @@ #include "featurelayout.h" -FeatureLayout::FeatureLayout(QWidget *parent, int margin, int hSpacing, int vSpacing) - : QLayout(parent), m_hSpace(hSpacing), m_vSpace(vSpacing) +FeatureLayout::FeatureLayout(QWidget *parent, int margin, int hSpacing, int vSpacing) : + QLayout(parent), + m_hSpace(hSpacing), + m_vSpace(vSpacing), + m_orientation(Qt::Horizontal) { setContentsMargins(margin, margin, margin, margin); } From 45bba662d6d4ba61cf34f671d0b3ae84f6498ee2 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:25:05 -0400 Subject: [PATCH 27/60] sdrgui: Initialize FFT noise reduction settings Initialize FFTNRDialog members in the constructor initializer list. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/gui/fftnrdialog.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sdrgui/gui/fftnrdialog.cpp b/sdrgui/gui/fftnrdialog.cpp index 23f0ea89d..aa8d02e3f 100644 --- a/sdrgui/gui/fftnrdialog.cpp +++ b/sdrgui/gui/fftnrdialog.cpp @@ -21,7 +21,14 @@ FFTNRDialog::FFTNRDialog(QWidget* parent) : QDialog(parent), - ui(new Ui::FFTNRDialog) + ui(new Ui::FFTNRDialog), + m_scheme(static_cast(0)), + m_aboveAvgFactor(0.0f), + m_sigmaFactor(0.0f), + m_nbPeaks(0), + m_alpha(0.0f), + m_flen(0), + m_sampleRate(0) { ui->setupUi(this); } From d6108a9584da2d91db6733e24471141b3e4a62bf Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:26:00 -0400 Subject: [PATCH 28/60] sdrgui: Initialize FM preemphasis settings Initialize m_tau and m_highFreq in FMPreemphasisDialog. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/gui/fmpreemphasisdialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdrgui/gui/fmpreemphasisdialog.cpp b/sdrgui/gui/fmpreemphasisdialog.cpp index 5eb774783..97c4911a4 100644 --- a/sdrgui/gui/fmpreemphasisdialog.cpp +++ b/sdrgui/gui/fmpreemphasisdialog.cpp @@ -28,6 +28,8 @@ FMPreemphasisDialog::FMPreemphasisDialog(float tau, float highFreq, QWidget* parent) : QDialog(parent), + m_tau(tau), + m_highFreq(highFreq), ui(new Ui::FMPreemphasisDialog) { ui->setupUi(this); From 4230eb0a3beb96e5e073688f75a66c66bc30228e Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:26:30 -0400 Subject: [PATCH 29/60] sdrgui: Initialize scope marker value Initialize m_value in the ScopeMarker copy constructor. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/gui/glscope.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sdrgui/gui/glscope.h b/sdrgui/gui/glscope.h index ba53f03a9..a0220afe2 100644 --- a/sdrgui/gui/glscope.h +++ b/sdrgui/gui/glscope.h @@ -131,6 +131,7 @@ private: ScopeMarker(const ScopeMarker& other) : m_point(other.m_point), m_time(other.m_time), + m_value(other.m_value), m_timeStr(other.m_timeStr), m_valueStr(other.m_valueStr), m_timeDeltaStr(other.m_timeDeltaStr), From f5ff635a643c07e7b3253a5883677063ad277467 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:27:11 -0400 Subject: [PATCH 30/60] sdrgui: Initialize logarithmic slider parameters Initialize m_start, m_stop, and m_steps in LogSlider. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/gui/logslider.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdrgui/gui/logslider.cpp b/sdrgui/gui/logslider.cpp index d6363a411..d7f538d56 100644 --- a/sdrgui/gui/logslider.cpp +++ b/sdrgui/gui/logslider.cpp @@ -28,7 +28,10 @@ #include "logslider.h" LogSlider::LogSlider(QWidget *parent) : - QSlider(Qt::Horizontal, parent) + QSlider(Qt::Horizontal, parent), + m_start(0.0), + m_stop(0.0), + m_steps(0.0) { QSlider::setRange(0, 1000); connect(this, &QSlider::valueChanged, this, &LogSlider::handleValueChanged); From c3a5d8099994fe8d2437fdfc0939bdbe73a23d8a Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:28:26 -0400 Subject: [PATCH 31/60] sdrgui: Initialize scale engine tick Value-initialize the Tick variable in ScaleEngine::reCalcStd. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/gui/scaleengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdrgui/gui/scaleengine.cpp b/sdrgui/gui/scaleengine.cpp index 28e0135c3..7bf252c8d 100644 --- a/sdrgui/gui/scaleengine.cpp +++ b/sdrgui/gui/scaleengine.cpp @@ -422,7 +422,7 @@ void ScaleEngine::reCalcStd() double value2; int i; int j; - Tick tick; + Tick tick{}; float pos; QString str; QFontMetricsF fontMetrics(m_font); From 0a7122cbbee4e40a471c72e2d48d850746098923 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:29:17 -0400 Subject: [PATCH 32/60] sdrgui: Initialize splash screen alignment Initialize alignement in the SDRangelSplash constructor. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/gui/sdrangelsplash.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdrgui/gui/sdrangelsplash.cpp b/sdrgui/gui/sdrangelsplash.cpp index f08ad8cd7..ee890fadb 100644 --- a/sdrgui/gui/sdrangelsplash.cpp +++ b/sdrgui/gui/sdrangelsplash.cpp @@ -22,7 +22,8 @@ #include "sdrangelsplash.h" -SDRangelSplash::SDRangelSplash(const QPixmap& pixmap) +SDRangelSplash::SDRangelSplash(const QPixmap& pixmap) : + alignement(0) { int screenWidth = screen()->availableGeometry().width(); QPixmap pm; From 1c0f48cfeda8d5044de1e145c51014ecac1d2ae6 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:31:27 -0400 Subject: [PATCH 33/60] sdrgui: Initialize spectrum measurement state Initialize measurement mask and menu pointers in SpectrumMeasurements. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/gui/spectrummeasurements.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdrgui/gui/spectrummeasurements.cpp b/sdrgui/gui/spectrummeasurements.cpp index 0458cc670..447b29432 100644 --- a/sdrgui/gui/spectrummeasurements.cpp +++ b/sdrgui/gui/spectrummeasurements.cpp @@ -197,7 +197,10 @@ SpectrumMeasurements::SpectrumMeasurements(QWidget *parent) : QWidget(parent), m_measurement(SpectrumSettings::MeasurementPeaks), m_precision(1), + m_memMask(0), m_table(nullptr), + m_rowMenu(nullptr), + m_columnMenu(nullptr), m_peakTable(nullptr), m_maskTable(nullptr) { From a7e83853deade8edf4baa3b66d5a75363538a6db Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:31:54 -0400 Subject: [PATCH 34/60] sdrgui: Initialize TV screen shader state Initialize shader locations and attribute indices in TVScreenAnalog. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/gui/tvscreenanalog.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/sdrgui/gui/tvscreenanalog.cpp b/sdrgui/gui/tvscreenanalog.cpp index d34f0221a..c0752556f 100644 --- a/sdrgui/gui/tvscreenanalog.cpp +++ b/sdrgui/gui/tvscreenanalog.cpp @@ -113,13 +113,21 @@ static const char* fragmentShaderSource = "}\n"; TVScreenAnalog::TVScreenAnalog(QWidget *parent) : - QOpenGLWidget(parent), - m_shader(nullptr), + QOpenGLWidget(parent), + m_textureLoc1(0), + m_textureLoc2(0), + m_imageWidthLoc(0), + m_imageHeightLoc(0), + m_texelWidthLoc(0), + m_texelHeightLoc(0), + m_vertexAttribIndex(0), + m_texCoordAttribIndex(0), + m_shader(nullptr), m_vao(nullptr), m_verticesBuf(nullptr), m_textureCoordsBuf(nullptr), - m_imageTexture(nullptr), - m_lineShiftsTexture(nullptr) + m_imageTexture(nullptr), + m_lineShiftsTexture(nullptr) { setAttribute(Qt::WA_OpaquePaintEvent); m_isDataChanged = false; From 3d611dd13ea8b578c7bb82f57c3d774f52e26f7a Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:32:52 -0400 Subject: [PATCH 35/60] sdrgui: Initialize workspace selection row Initialize m_selectedRow in WorkspaceSelectionDialog. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/gui/workspaceselectiondialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sdrgui/gui/workspaceselectiondialog.cpp b/sdrgui/gui/workspaceselectiondialog.cpp index b96b48164..19a75a0f6 100644 --- a/sdrgui/gui/workspaceselectiondialog.cpp +++ b/sdrgui/gui/workspaceselectiondialog.cpp @@ -27,6 +27,7 @@ WorkspaceSelectionDialog::WorkspaceSelectionDialog(int numberOfWorkspaces, int w QDialog(parent), ui(new Ui::WorkspaceSelectionDialog), m_numberOfWorkspaces(numberOfWorkspaces), + m_selectedRow(0), m_hasChanged(false) { ui->setupUi(this); From 77969258ef3fd5339d2f5896afc999e304af9541 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:33:16 -0400 Subject: [PATCH 36/60] sdrgui: Initialize configuration FSM Initialize m_loadConfigurationFSM in the InitFSM constructor. Found by cppcheck. Signed-off-by: Robin Getz --- sdrgui/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdrgui/mainwindow.cpp b/sdrgui/mainwindow.cpp index dbf2202c0..4bdec5bae 100644 --- a/sdrgui/mainwindow.cpp +++ b/sdrgui/mainwindow.cpp @@ -1226,7 +1226,8 @@ void LoadConfigurationFSM::restoreGeometry() InitFSM::InitFSM(MainWindow *mainWindow, SDRangelSplash *splash, bool loadDefault, bool showConfigs, QObject *parent) : MainWindowFSM(mainWindow, parent), m_splash(splash), - m_showConfigs(showConfigs) + m_showConfigs(showConfigs), + m_loadConfigurationFSM(nullptr) { // Create FSM createStates(2); From 349f23635eade033b87f978f0e5580b569e87cb3 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:33:46 -0400 Subject: [PATCH 37/60] wdsp: Initialize TXA state Initialize meter, slew, and bandpass pointers in the TXA constructor. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/TXA.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wdsp/TXA.cpp b/wdsp/TXA.cpp index 7fe31d5fe..47fdc1ad6 100644 --- a/wdsp/TXA.cpp +++ b/wdsp/TXA.cpp @@ -63,7 +63,12 @@ TXA::TXA( _out_rate, _dsp_rate, _dsp_size -) +), + meter{}, + upslew(0), + bps0(nullptr), + bps1(nullptr), + bps2(nullptr) { mode = TXA_LSB; f_low = -5000.0; From 146d038da857af7c950a9a045435a62f594ab382 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:34:13 -0400 Subject: [PATCH 38/60] wdsp: Initialize AMD state Initialize AMD state and audio variables to avoid uninitialized data. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/amd.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wdsp/amd.cpp b/wdsp/amd.cpp index 820e1b4b7..565a8795c 100644 --- a/wdsp/amd.cpp +++ b/wdsp/amd.cpp @@ -66,6 +66,12 @@ AMD::AMD omegaN(_omegaN), tauR(_tauR), tauI(_tauI), + a{}, + b{}, + c{}, + d{}, + dsI(0), + dsQ(0), sbmode(_sbmode), levelfade(_levelfade) { @@ -117,7 +123,7 @@ void AMD::flush() void AMD::execute() { - double audio; + double audio = 0.0; std::array vco; std::array corr; double det; From d7cf53a6a859871afecf49a63f179f6fe29257c5 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:34:43 -0400 Subject: [PATCH 39/60] wdsp: Initialize AMSQ sample count Initialize count in the AMSQ constructor. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/amsq.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wdsp/amsq.cpp b/wdsp/amsq.cpp index c84189395..c9e2a5903 100644 --- a/wdsp/amsq.cpp +++ b/wdsp/amsq.cpp @@ -95,6 +95,7 @@ AMSQ::AMSQ ( trigger(_trigger), rate((double) _rate), avtau(_avtau), + count(0), tup(_tup), tdown(_tdown), tail_thresh(_tail_thresh), From 9a5234b7376906f7a38966fe3b3c1d5affb9d1d8 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:35:11 -0400 Subject: [PATCH 40/60] wdsp/cfcomp: Initialize CFCOMP mask state Initialize mask_ready in the CFCOMP constructor. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/cfcomp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wdsp/cfcomp.cpp b/wdsp/cfcomp.cpp index c05569682..1fad609f0 100644 --- a/wdsp/cfcomp.cpp +++ b/wdsp/cfcomp.cpp @@ -252,6 +252,7 @@ CFCOMP::CFCOMP( out(_out), fsize(_fsize), ovrlp(_ovrlp), + mask_ready(0), rate(_rate), wintype(_wintype), comp_method(_comp_method), From 540222457db826fbe890e2cd10c6d5f9abc99922 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:36:23 -0400 Subject: [PATCH 41/60] wdsp/emnr: Initialize EMNR state Initialize gain, NPE, AE, and file state in the EMNR constructor. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/emnr.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wdsp/emnr.cpp b/wdsp/emnr.cpp index c07bd22e8..07808654f 100644 --- a/wdsp/emnr.cpp +++ b/wdsp/emnr.cpp @@ -419,7 +419,11 @@ EMNR::G::G( rate(_rate), msize(_msize), mask(_mask), - y(_y) + y(_y), + gain_method(0), + npe_method(0), + ae_run(0), + fileb(nullptr) { lambda_y.resize(msize); From 8b735e7fe384192ef827a5df7b9278b79d1682cf Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:36:53 -0400 Subject: [PATCH 42/60] wdsp/fcurve: Initialize filter curve buffer Value-initialize the allocated filter curve buffer. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/fcurve.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wdsp/fcurve.cpp b/wdsp/fcurve.cpp index 7830ffe45..fa4ae065c 100644 --- a/wdsp/fcurve.cpp +++ b/wdsp/fcurve.cpp @@ -33,7 +33,7 @@ namespace WDSP { void FCurve::fc_impulse (std::vector& impulse, int nc, float f0, float f1, float g0, float, int curve, float samplerate, float scale, int ctfmode, int wintype) { - float* A = new float[nc / 2 + 1]; // (float *) malloc0 ((nc / 2 + 1) * sizeof (float)); + float* A = new float[nc / 2 + 1]{}; // (float *) malloc0 ((nc / 2 + 1) * sizeof (float)); int i; float fn, f; int mid = nc / 2; From f590f25befa18e9f9f0fefd214222f8c01814d39 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:37:21 -0400 Subject: [PATCH 43/60] wdsp/fmsq: Initialize FMSQ sample count Initialize count in the FMSQ constructor. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/fmsq.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wdsp/fmsq.cpp b/wdsp/fmsq.cpp index a61c0700b..88f3c3ebc 100644 --- a/wdsp/fmsq.cpp +++ b/wdsp/fmsq.cpp @@ -122,6 +122,7 @@ FMSQ::FMSQ( pllpole(_pllpole), avtau(_avtau), longtau(_longtau), + count(0), tup(_tup), tdown(_tdown), tail_thresh(_tail_thresh), From 3cd633736f85b54dd7e37a36de9e5fdac9f9cdb0 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:37:51 -0400 Subject: [PATCH 44/60] wdsp/nbp: Initialize notch database state Initialize tunefreq, shift, and hadnotch in the NBP constructors. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/nbp.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wdsp/nbp.cpp b/wdsp/nbp.cpp index 73a11f88e..9053e1557 100644 --- a/wdsp/nbp.cpp +++ b/wdsp/nbp.cpp @@ -41,7 +41,9 @@ namespace WDSP { * * ********************************************************************************************************/ -NOTCHDB::NOTCHDB(int _master_run, int _maxnotches) +NOTCHDB::NOTCHDB(int _master_run, int _maxnotches) : + tunefreq(0), + shift(0) { master_run = _master_run; maxnotches = _maxnotches; @@ -433,7 +435,8 @@ NBP::NBP( flow(_flow), fhigh(_fhigh), maxpb(_maxpb), - notchdb(_notchdb) + notchdb(_notchdb), + hadnotch(0) { bplow.resize(maxpb); bphigh.resize(maxpb); From dd8ef39b5ee1f45d4b708164b78fd66ef9ea7a32 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:38:23 -0400 Subject: [PATCH 45/60] wdsp/nob: Initialize NOB state Initialize NOB state members in the constructor initializer list. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/nob.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/wdsp/nob.cpp b/wdsp/nob.cpp index ac3eb9cfb..328ed83fe 100644 --- a/wdsp/nob.cpp +++ b/wdsp/nob.cpp @@ -96,8 +96,23 @@ NOB::NOB ( hangslewtime(_hangslewtime), hangtime(_hangtime), max_imp_seq_time(_max_imp_seq_time), + filterlen(0), backtau(_backtau), - threshold(_threshold) + threshold(_threshold), + time(0), + blank_count(0), + I1(0), + Q1(0), + I2(0), + Q2(0), + I(0), + Q(0), + Ilast(0), + Qlast(0), + deltaI(0), + deltaQ(0), + Inext(0), + Qnext(0) { dline_size = (int)(MAX_SAMPLERATE * ( MAX_ADV_SLEW_TIME + From 68dd4e2f545703db98047357ada883f9ab14cb45 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:38:59 -0400 Subject: [PATCH 46/60] wdsp/osctrl: Initialize output envelope Initialize env_out in the OSCTRL constructor. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/osctrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wdsp/osctrl.cpp b/wdsp/osctrl.cpp index de2cfee84..a865f0b04 100644 --- a/wdsp/osctrl.cpp +++ b/wdsp/osctrl.cpp @@ -61,7 +61,8 @@ OSCTRL::OSCTRL( inbuff(_inbuff), outbuff(_outbuff), rate(_rate), - osgain(_osgain) + osgain(_osgain), + env_out(0) { bw = 3000.0; calc(); From d31dd7d035922239fd731c6ad487cd7174045b61 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:39:21 -0400 Subject: [PATCH 47/60] wdsp/siphon: Initialize output size Initialize outsize in the SIPHON constructor. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/siphon.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wdsp/siphon.cpp b/wdsp/siphon.cpp index b04f56af3..7e4d49475 100644 --- a/wdsp/siphon.cpp +++ b/wdsp/siphon.cpp @@ -75,6 +75,7 @@ SIPHON::SIPHON( insize(_insize), in(_in), sipsize(_sipsize), // NOTE: sipsize MUST BE A POWER OF TWO!! + outsize(0), fftsize(_fftsize), specmode(_specmode) { From 55ff6ddcdc42ee928edec0f46ca7dff3ca4cb5ec Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:40:07 -0400 Subject: [PATCH 48/60] wdsp/snotch: Initialize notch filter state Initialize x0 in the SNOTCH constructor. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/snotch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wdsp/snotch.cpp b/wdsp/snotch.cpp index f2d532c0b..e0cf1d5b7 100644 --- a/wdsp/snotch.cpp +++ b/wdsp/snotch.cpp @@ -69,7 +69,8 @@ SNOTCH::SNOTCH( out(_out), rate(_rate), f(_f), - bw(_bw) + bw(_bw), + x0(0) { calc(); } From 667be5a17299a553ebe5423d9ba910321ef0fde6 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:40:43 -0400 Subject: [PATCH 49/60] wdsp/speak: Initialize channel bandwidth Initialize cbw in the SPEAK constructor. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/speak.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wdsp/speak.cpp b/wdsp/speak.cpp index e07e5a168..748fa595e 100644 --- a/wdsp/speak.cpp +++ b/wdsp/speak.cpp @@ -141,6 +141,7 @@ SPEAK::SPEAK( rate(_rate), f(_f), bw(_bw), + cbw(0.0), gain(_gain), nstages(_nstages), design(_design) From 8c0e79458cc0013b53087e63487d01458d65340a Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:41:12 -0400 Subject: [PATCH 50/60] wdsp/unit: Initialize unit state Initialize state in the Unit constructor. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/unit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wdsp/unit.cpp b/wdsp/unit.cpp index b6d33ad55..71800fa30 100644 --- a/wdsp/unit.cpp +++ b/wdsp/unit.cpp @@ -40,7 +40,8 @@ Unit::Unit( in_rate{_in_rate}, out_rate(_out_rate), dsp_rate(_dsp_rate), - dsp_size(_dsp_size) + dsp_size(_dsp_size), + state(0) { if (_in_rate >= _dsp_rate) dsp_insize = _dsp_size * (_in_rate / _dsp_rate); From 6c8ad0c6588a686d672d0eca8bfceddb08134bc5 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:41:50 -0400 Subject: [PATCH 51/60] wdsp/wcpAGC: Initialize AGC state Initialize gain, ring buffers, and output samples in WCPAGC. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/wcpAGC.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wdsp/wcpAGC.cpp b/wdsp/wcpAGC.cpp index ae7aac1f5..c0c4cfe11 100644 --- a/wdsp/wcpAGC.cpp +++ b/wdsp/wcpAGC.cpp @@ -94,6 +94,11 @@ WCPAGC::WCPAGC( fixed_gain(_fixed_gain), max_input(_max_input), out_targ(_out_targ), + gain(0), + ring{}, + abs_ring{}, + out_sample{}, + abs_out_sample(0), tau_fast_backaverage(_tau_fast_backaverage), tau_fast_decay(_tau_fast_decay), pop_ratio(_pop_ratio), From 8a1e74c9345a200fb64802da56fdc38a1a948d57 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 15:02:48 -0400 Subject: [PATCH 52/60] pagerdemodflex: Initialize demodulator state Initialize candidate, flywheel, frame, and symbol recovery state. Found by cppcheck. Signed-off-by: Robin Getz --- .../channelrx/demodpager/pagerdemodflex.cpp | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/plugins/channelrx/demodpager/pagerdemodflex.cpp b/plugins/channelrx/demodpager/pagerdemodflex.cpp index 62305cbe9..f20a82d86 100644 --- a/plugins/channelrx/demodpager/pagerdemodflex.cpp +++ b/plugins/channelrx/demodpager/pagerdemodflex.cpp @@ -604,7 +604,37 @@ void PagerDemodFlexDecoder::addFragment(PagerDemodFlexMessage& message, int frag PagerDemodFlex::PagerDemodFlex(int sampleRate) : m_sampleRate(sampleRate), - m_sps1600(sampleRate / 1600) + m_sps1600(sampleRate / 1600), + m_candidateFlywheel(false), + m_candidateFirst(0), + m_candidateEnd(0), + m_flywheelSyncEnd(0.0), + m_flywheelPeriods(0), + m_flywheelCode(0), + m_flywheelInverted(false), + m_flywheelCycle(0), + m_flywheelFrame(0), + m_syncEnd(0.0), + m_polarity(0.0f), + m_dc(0.0f), + m_deviation(0.0f), + m_syncPower(0.0f), + m_bitIndex(0), + m_nextBitSample(0.0), + m_deviationSum(0.0), + m_fiw(0), + m_sps(0), + m_timing(0.0), + m_gotMid(false), + m_mid(0.0f), + m_prevSymbol(0.0f), + m_havePrevSymbol(false), + m_prevMf(0.0f), + m_symbolIndex(0), + m_sync2Symbols(0), + m_dataSymbols(0), + m_blockPower{}, + m_blockSamples{} { int histSize = 1; while (histSize <= m_syncBits * m_sps1600) { From 7d239a5751188442d853907896c97a5f87ad9e64 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 16:56:01 -0400 Subject: [PATCH 53/60] psk31demodulator: Fix constructor initializer order Reorder AFC and magnitude-squared member initializers to match their declaration order and avoid -Wreorder warnings. Signed-off-by: Robin Getz --- plugins/channelrx/demodpsk31/psk31demodulator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/channelrx/demodpsk31/psk31demodulator.cpp b/plugins/channelrx/demodpsk31/psk31demodulator.cpp index de01e9975..a3c71f936 100644 --- a/plugins/channelrx/demodpsk31/psk31demodulator.cpp +++ b/plugins/channelrx/demodpsk31/psk31demodulator.cpp @@ -31,8 +31,6 @@ PSK31Demodulator::PSK31Demodulator() : m_maxFrequency(0.0f), m_trackingCutoff(0.0f), m_trackingNoiseBandwidth(1.0f), - m_afcFrequency(0.0f), - m_afcPhase(0.0f), m_magsq(0.0), m_magsqSum(0.0), m_magsqPeak(0.0), @@ -41,6 +39,8 @@ PSK31Demodulator::PSK31Demodulator() : m_afcCount(0), m_afcCandidate(0.0f), m_afcCandidateValid(false), + m_afcFrequency(0.0f), + m_afcPhase(0.0f), m_matchedFilterIndex(0), m_historyIndex(0), m_symbolPower(0.0f), From a209f8075521f692f483517ea3fa3b15c32b7781 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 16:57:36 -0400 Subject: [PATCH 54/60] radioastronomy: Fix GCC uninitialized variable warnings Initialize the next row index and FFT measurement value to avoid potentially using uninitialized variables reported by GCC 14.2. Signed-off-by: Robin Getz --- plugins/channelrx/radioastronomy/radioastronomygui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/channelrx/radioastronomy/radioastronomygui.cpp b/plugins/channelrx/radioastronomy/radioastronomygui.cpp index 45931921f..b13bed7c8 100644 --- a/plugins/channelrx/radioastronomy/radioastronomygui.cpp +++ b/plugins/channelrx/radioastronomy/radioastronomygui.cpp @@ -2385,7 +2385,7 @@ void RadioAstronomyGUI::customContextMenuRequested(QPoint pos) } std::sort(rows.begin(), rows.end(), std::greater()); bool deletedCurrent = false; - int next; + int next = 0; foreach (auto row, rows) { next = row - 1; if (deleteRow(row)) { @@ -4313,7 +4313,7 @@ void RadioAstronomyGUI::plotFFTMeasurement(int index) // Plot power/temp for (int i = 0; i < fft->m_fftSize; i++) { - qreal value; + qreal value = -std::numeric_limits::infinity(); switch (m_settings.m_spectrumYScale) { case RadioAstronomySettings::SY_DBFS: From 4ac89f7ed2fa2d1e1c9d7598ff636b4abcab06cc Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 16:58:36 -0400 Subject: [PATCH 55/60] moddatv: Fix GCC uninitialized variable warnings Handle unsupported modulation and DVB-S code rates in getDVBSDataBitrate() and stop checkBitrates() when no valid bitrate can be calculated. Signed-off-by: Robin Getz --- plugins/channeltx/moddatv/datvmodsettings.cpp | 6 ++++++ plugins/channeltx/moddatv/datvmodsource.cpp | 3 +++ 2 files changed, 9 insertions(+) diff --git a/plugins/channeltx/moddatv/datvmodsettings.cpp b/plugins/channeltx/moddatv/datvmodsettings.cpp index eb6addab7..c42321e15 100644 --- a/plugins/channeltx/moddatv/datvmodsettings.cpp +++ b/plugins/channeltx/moddatv/datvmodsettings.cpp @@ -251,6 +251,9 @@ int DATVModSettings::getDVBSDataBitrate() const case DATVModSettings::APSK32: bitsPerSymbol = 5.0f; break; + default: + qWarning("DATVModSettings::getDVBSDataBitrate: Unsupported modulation"); + return 0; } if (m_standard == DATVModSettings::DVB_S) @@ -297,6 +300,9 @@ int DATVModSettings::getDVBSDataBitrate() const case DATVModSettings::FEC35: convFactor = 3.0f/5.0f; break; + default: + qWarning("DATVModSettings::getDVBSDataBitrate: Unsupported DVB-S code rate"); + return 0; } fecFactor = rsFactor * convFactor; plFactor = 1.0f; diff --git a/plugins/channeltx/moddatv/datvmodsource.cpp b/plugins/channeltx/moddatv/datvmodsource.cpp index 90a21b163..567800e55 100644 --- a/plugins/channeltx/moddatv/datvmodsource.cpp +++ b/plugins/channeltx/moddatv/datvmodsource.cpp @@ -214,7 +214,10 @@ void DATVModSource::checkBitrates() qDebug() << "MPEG-TS bitrate: " << m_mpegTSBitrate; qDebug() << "DVB data bitrate: " << dataBitrate; if (dataBitrate <= 0) + { qWarning() << "Unable to calculate DVB data bitrate"; + return; + } if (dataBitrate < m_mpegTSBitrate) qWarning() << "DVB data bitrate is lower than the bitrate of the MPEG transport stream"; m_tsRatio = m_mpegTSBitrate/(float)dataBitrate; From 8a7d5973ea031721c5fbc86c4b9181efe8fb0416 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 16:59:52 -0400 Subject: [PATCH 56/60] moddatv: Avoid using unset FEC rate variables Handle unsupported DVB-S2 code rates in get_dvbs2_rate() instead of using uninitialized FEC numerator and denominator values. Resolves a compiler warning. Signed-off-by: Robin Getz --- plugins/channeltx/moddatv/tsgenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/channeltx/moddatv/tsgenerator.cpp b/plugins/channeltx/moddatv/tsgenerator.cpp index 2314ac71a..f8a676c3e 100644 --- a/plugins/channeltx/moddatv/tsgenerator.cpp +++ b/plugins/channeltx/moddatv/tsgenerator.cpp @@ -486,7 +486,8 @@ double TSGenerator::get_dvbs2_rate(double symbol_rate, DATVModSettings::DATVModu fec_den = 5.0; break; default: - return symbol_rate * (fec_num / fec_den); // others + qWarning("TSGenerator::get_dvbs2_rate: Unsupported DVB-S2 code rate"); + return 0; } switch (modulation) { From eafba57ecfa7602d528a01091e069f5cfa2357eb Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 17:00:45 -0400 Subject: [PATCH 57/60] mcpserver: Fix MCPAudioCapture initializer order Reorder member initializers to match their declaration order and avoid the GCC -Wreorder warning. Signed-off-by: Robin Getz --- plugins/feature/mcpserver/mcpaudiocapture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/feature/mcpserver/mcpaudiocapture.cpp b/plugins/feature/mcpserver/mcpaudiocapture.cpp index bd0cff414..33c5b1e85 100644 --- a/plugins/feature/mcpserver/mcpaudiocapture.cpp +++ b/plugins/feature/mcpserver/mcpaudiocapture.cpp @@ -59,9 +59,9 @@ MCPAudioCapture::MCPAudioCapture(WebAPIAdapterInterface *adapter, QObject *paren m_pendingChannel(nullptr), m_pendingFifo(nullptr), m_pendingReportQueue(nullptr), + m_stopping(0), m_capturingChannel(nullptr), - m_captureAborted(0), - m_stopping(0) + m_captureAborted(0) { } From 6380a5116132321c4a65a0dff9a45f8b65f97b4c Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 17:01:48 -0400 Subject: [PATCH 58/60] mcpserver: Fix GCC warnings in MCP tools Avoid binding range-loop variables to temporary QString values and compare channel type strings by value instead of pointer address. Signed-off-by: Robin Getz --- plugins/feature/mcpserver/mcptools.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/feature/mcpserver/mcptools.cpp b/plugins/feature/mcpserver/mcptools.cpp index 1c838bc2f..68ac85d3d 100644 --- a/plugins/feature/mcpserver/mcptools.cpp +++ b/plugins/feature/mcpserver/mcptools.cpp @@ -1244,7 +1244,7 @@ QString MCPTools::describeType(const QString& typeIn, const QString& kindIn) out.append("# main spectrum display of a device set\n# get_spectrum_settings / set_spectrum_settings, get_spectrum_report, spectrum_action\n" "# get_docs spectrum explains the display and its controls\n"); - for (const QString& definition : {"GLSpectrum", "GLSpectrumReport", "SpectrumActions"}) + for (const QString definition : {"GLSpectrum", "GLSpectrumReport", "SpectrumActions"}) { if (m_yamlDefinitions.contains(definition)) { @@ -5695,7 +5695,8 @@ void MCPTools::registerIntentTools() // shows up, 100 kHz off and weaker, and then nothing decodes. So a coarser step on // a broadcast range is scanned at 100 kHz, which loses nothing where the odd tenths // are the rule - const bool broadcast = (mode->m_channelType == "BFMDemod") || (mode->m_channelType == "WFMDemod"); + const bool broadcast = (QLatin1String(mode->m_channelType) == "BFMDemod") || + (QLatin1String(mode->m_channelType) == "WFMDemod"); QString rasterNote; if (fromRange) From c6b868f635ac3af34e9536cc7cc242af0267253f Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 17:02:26 -0400 Subject: [PATCH 59/60] radiosonde: Initialize chart axis pointers Initialize optional Y-axis pointers to nullptr to fix GCC 14.2 -Wmaybe-uninitialized warnings. Signed-off-by: Robin Getz --- plugins/feature/radiosonde/radiosondegui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/feature/radiosonde/radiosondegui.cpp b/plugins/feature/radiosonde/radiosondegui.cpp index a5535c074..04a447b08 100644 --- a/plugins/feature/radiosonde/radiosondegui.cpp +++ b/plugins/feature/radiosonde/radiosondegui.cpp @@ -960,8 +960,8 @@ void RadiosondeGUI::plotChart() { // Plot selected data QDateTimeAxis *m_chartXAxis; - QValueAxis *m_chartY1Axis; - QValueAxis *m_chartY2Axis; + QValueAxis *m_chartY1Axis = nullptr; + QValueAxis *m_chartY2Axis = nullptr; m_chartXAxis = new QDateTimeAxis(); if (m_settings.m_y1 != RadiosondeSettings::NONE) { From 1a2cfc1677f30608143ade7d2b801f76997a8b81 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 17:03:02 -0400 Subject: [PATCH 60/60] glspectrumview: Initialize device pixel ratio Initialize devicePixelRatio to avoid a GCC 14.2 -Wmaybe-uninitialized warning when the window handle is unavailable. Signed-off-by: Robin Getz --- sdrgui/gui/glspectrumview.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sdrgui/gui/glspectrumview.cpp b/sdrgui/gui/glspectrumview.cpp index 4ce7bf2d8..a298b5e55 100644 --- a/sdrgui/gui/glspectrumview.cpp +++ b/sdrgui/gui/glspectrumview.cpp @@ -1550,7 +1550,7 @@ void GLSpectrumView::paintGL() glFunctions->glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); QMatrix4x4 spectrogramGridMatrix; - float devicePixelRatio; + float devicePixelRatio = 1.0f; if (m_display3DSpectrogram) { @@ -1575,8 +1575,6 @@ void GLSpectrumView::paintGL() // Temporarily reduce viewport to waterfall area so anything outside is clipped if (window()->windowHandle()) { devicePixelRatio = window()->windowHandle()->devicePixelRatio(); - } else { - devicePixelRatio = 1.0f; } glFunctions->glViewport(0, m_3DSpectrogramBottom*devicePixelRatio, width()*devicePixelRatio, m_waterfallHeight*devicePixelRatio); m_glShaderSpectrogram.drawSurface(