Browse Source

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 <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 3 months ago
parent
commit
87b52cfd56
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 3
      plugins/channelrx/demoddatv/ldpctool/ldpcworker.cpp

3
plugins/channelrx/demoddatv/ldpctool/ldpcworker.cpp

@ -43,6 +43,9 @@ Transformed again in to a Qt worker. @@ -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),

Loading…
Cancel
Save