Initialize the NFM demodulator thread and baseband sink pointers before
they are accessed during construction.
Reported by Coverity.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize frequency-related state in the LeanSDR sampler and
constellation receiver to prevent use of uninitialized values during
startup.
Reported by Coverity.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Value-initialize the pipebuf reader pointer array so all reader entries
start in a defined state.
Reported by Coverity.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize simplequeue storage and s2_fecdec_helper state to prevent
uninitialized member access.
Reported by Coverity.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
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>
Initialize m_thread and m_basebandSink to nullptr in BFMDemod's
constructor to prevent uninitialized pointer use.
Reported by Coverity.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_centerFrequency to zero in the ChannelPower constructor
to prevent use of an uninitialized value.
Reported by Coverity (CID 652667).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_centerFrequency to zero in the ChannelAnalyzer constructor to
ensure the device-provided frequency state is defined before it is received.
Found by Coverity (CID 653807).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the channel pointer and spectrum probe undersample count
to ensure deterministic initial state.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize previously uninitialized channel, timing, threshold, and
demodulation state in RadioClockSink.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the channel pointer and hot-state flag in
RadioAstronomySink to avoid uninitialized member values.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_channel to nullptr in NoiseFigureSink to avoid an
uninitialized member pointer.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_spectrumGUI to nullptr in the LocalSinkSettings constructor.
Keep the runtime GUI association separate from resetToDefaults().
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_channel to nullptr in the HeatMapSink constructor to avoid
leaving the channel pointer uninitialized.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_scopeGUI to nullptr in the HeatMapSettings constructor to
avoid leaving the member uninitialized.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the channel sample rate, frequency offset, center frequency,
and device UID to defined values.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the FileSinkBaseband spectrum sink, GUI message queue,
center frequency, and timer to defined values.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the WFMDemodSink channel pointer to nullptr so it has a
defined value before a channel is assigned.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the interpolator distances, channel message queue pointer,
and audio interpolator distances in VORDemodSCSink to ensure these
members have defined values before use.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the SSBDemodSink channel pointer to nullptr to ensure the
member has a defined value before a channel is assigned.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the DNR configuration members of SSBDemodFilterSettings with
the same defaults used by SSBDemodSettings.
This prevents the filter-bank settings from being left uninitialized
and preserves the existing SSB DNR defaults.
Identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the scope and channel pointers and the RTTY data and baud
rate state in RttyDemodSink.
The changes were identified by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the channel pointer and receive byte buffer in the
RadiosondeDemodSink constructor.
This removes uninitialized member warnings and ensures the receive
buffer starts in a defined state.
found by cppcheck
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the uninitialized codeword arrays and reorder constructor
initializers to match the member declaration order.
This removes cppcheck static-analysis warnings and avoids -Wreorder diagnostics
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Zero-initialize the packet byte buffer so it has a defined state when
PacketDemodFramer::State is constructed.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the scope sink, channel, and data state members to defined
values before they are used.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_magsqMax to zero so the magnitude tracking state has a
defined value before it is first used.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_magsqMax to zero so the magnitude tracking state has a
defined value before it is first used.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the carrier/sideband power, modulation depth, and DDM/SDM
members to zero before they are used.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_spectrumVis in ILSDemodBaseband's constructor to avoid
uninitialized member state.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize pointer and level members in FT8DemodSink's constructor to
avoid uninitialized member state and ensure owned resources start from
a known state.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_df in FT8DemodFilterProxy's constructor to avoid
uninitialized member state.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_channel and m_bytes in EndOfTrainDemodSink's constructor
to avoid uninitialized member state reported by cppcheck.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_channel and m_formatStatusText in DSDDemodSink's
constructor to avoid uninitialized member state reported by cppcheck.
Found by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the default AMBE feature index and feature pointer to defined
values while preserving aggregate initialization.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the DSC demodulator sink's channel, data state, and decoder
members to defined values.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the viterbi decoder state banks to zero in the constructor,
ensuring all state metrics and paths have defined initial values.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the LUT and MODCOD tracking members in cstln_lut to
avoid leaving them uninitialized during construction.
Initialize mer_out to nullptr in fast_qpsk_receiver to prevent use of an
uninitialized output pointer.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize HDLC decoder state members in the constructor to ensure they
start with defined values.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the scheduler pipe and runnable arrays to avoid leaving
member storage uninitialized.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize buffers, pointers, and configuration state that were left
uninitialized in the DVB-S2 FEC decoder and framer classes to ensure
deterministic initial state and avoid use of uninitialized values.
These changes address uninitialized member warnings reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize synchronization state, lock timing values, and output
pointers in the mpeg_sync constructor to ensure deterministic state
before the decoder is configured.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Zero-initialize the bitvect storage in the default constructor so that
new bit vectors have a deterministic state instead of containing
uninitialized values.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the convol_multipoly polynomial pointer to nullptr so that
instances have a deterministic state before being configured.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize buffer sizes, counters, state, interpolation values, and
channel settings in the DATVDemodSink constructor to ensure deterministic
initial state and avoid use of uninitialized values.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize counters, history arrays, sync state, and magnitude tracking
members in the ChirpChatDemodSink constructor to ensure deterministic
initial state and avoid use of uninitialized values.
Reported by cppcheck.
Signed-off-by: Robin Getz <rgetz503@gmail.com>