From 87b52cfd563be6070396bb8b1490dae88795269a Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 22 Aug 2026 16:12:08 -0400 Subject: [PATCH] demoddatv/ldpctool/ldpcworker: initialize LDPC worker state Initialize BLOCKS, m_codeLen, and m_dataLen in LDPCWorker so they have defined values when construction exits early due to an unsupported MODCOD or missing LDPC table. Reported by Coverity. Signed-off-by: Robin Getz --- plugins/channelrx/demoddatv/ldpctool/ldpcworker.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/channelrx/demoddatv/ldpctool/ldpcworker.cpp b/plugins/channelrx/demoddatv/ldpctool/ldpcworker.cpp index b41cb44bb..bf084e7a8 100644 --- a/plugins/channelrx/demoddatv/ldpctool/ldpcworker.cpp +++ b/plugins/channelrx/demoddatv/ldpctool/ldpcworker.cpp @@ -43,6 +43,9 @@ Transformed again in to a Qt worker. LDPCWorker::LDPCWorker(int modcod, int maxTrials, int batchSize, bool shortFrames) : m_maxTrials(maxTrials), + BLOCKS(0), + m_codeLen(0), + m_dataLen(0), m_aligned_buffer(nullptr), m_ldpc(nullptr), m_code(nullptr),