Value-initialize the local DTVVideoPlayer::Info object in
displayPlayerInfo() so its members are initialized when no
player instance is available.
Coverity CID 657528 identified a possible uninitialized read
of m_audioFrames.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Mask the symbol index to one bit when indexing m_chipsBPSK,
which contains only two symbol entries.
Coverity identified a potential out-of-bounds read when
getSymbol() returns a value greater than 1. Mask the index
to ensure the lookup stays within the array bounds and
match the existing BPSK indexing in IEEE_802_15_4_PHY.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
After adding the SFO drift (4.25 * sfo_hat) to the fractional STO, the
value was wrapped back into [-0.5, 0.5] but the removed whole chip was
discarded, misaligning subsequent symbols by m_osFactor samples. This
mostly bites at high SF with clock drift, where the drift term can
reach ~0.3+ chips.
- Fold the wrapped chip(s) into the returned FIFO advance (-chips * os).
- Wrap via loRaRound() (half away from zero), so |sto_frac| >= 0.5 now
wraps; previously exactly 0.5 did not. Equivalent timing either way.
- Reset non-finite STO before rounding (float->int cast of NaN/inf is UB).
- Log when the FIFO advance is clamped to 1.
Other applications (e.g. SoapyPlutoSDR, used by gqrx) leave the RX LO
powered down when they close, so SDRangel only received the AD9361's
own noise. In FDD mode the Tx LO also stays up while no stream runs,
radiating LO leakage when the Tx device is merely opened.
Set the LO powerdown attribute explicitly: power the LO up when a
stream starts, down when it stops or fails, and power the Tx LO down
when the Tx device is opened. Applies to the input, output and MIMO
plugins.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RTTY, NAVTEX and ILS demods read logFilename/logEnabled from
getAdsbDemodSettings(), which is null for those channels, so a PATCH of
either key crashes SDRangel. Also fix M17 Mod reverseAPIChannelIndex
(read from NFM Mod settings), Audio CAT SISO settings get and XTRX MIMO
reverse API settings and report (Input instead of MIMO types), and
BladeRF2 Output title (BladeRF1 settings).
libiio 1.x installs its header as include/iio/iio.h instead of
include/iio.h. Look for the 1.x layout first and fall back to the 0.x
one, and set LIBIIO_V1 so plutosdrdevice can select the API at compile
time. The bundled external build (v0.26) keeps the 0.x path.
The input and output plugin headers only need the iio_buffer type, so
forward-declare it instead of including iio.h.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve GCC -Wreorder by moving m_spectrumBinHz before
m_autoUnlockedSamples in the constructor initializer list to
match declaration order in the header. C++ initializes members
in declaration order regardless of initializer list order, so
keeping the list aligned avoids misleading initialization
sequences and helps prevent future initialization bugs.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Resolve GCC -Wtype-limits warnings by removing upper-bound
comparisons that are always true or false for uint16_t.
The port's type already enforces the maximum value of 65535;
validation of wider input values remains in place before casting.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Resolve the compiler warning for the unused frequencyHz parameter
in processAcquisitionSample(). Use Q_UNUSED to explicitly document
that the parameter is intentionally unused without changing behavior.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Resolve GCC -Wmissing-field-initializers by explicitly initializing
the onEdit callback to an empty std::function. This ensures the
callback starts in a defined empty state and avoids relying on
implicit aggregate initialization behavior.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
The GUI is set up on the rollup contents widget, so Qt does not
auto-connect the on_meshPreset_currentIndexChanged and
on_meshApply_clicked slots. They were never called: choosing a preset or
clicking Apply had no effect, USER did not enable the manual LoRa
controls and the preset went back to the saved EU_NARROW on the next
settings refresh. Connect them explicitly as the MeshCore modulator and
Meshtastic demodulator already do.
Fixes#2874
Explicitly delete the copy constructor and copy assignment operator for
UDPSourceSource, which manages resources that should not be shared through
implicit shallow copies.
The implicitly generated copy operations could leave multiple UDPSourceSource
instances referring to the same resources, potentially causing invalid
ownership or double deletion.
Since UDPSourceSource is not intended to be copied or assigned, prohibit
both operations at compile time to prevent unsafe resource ownership.
cppcheck identified the missing copy constructor and assignment operator
with its noCopyConstructor and noOperatorEq warnings.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Explicitly delete the copy constructor and copy assignment operator for
DVBS, which manages resources that should not be shared through implicit
shallow copies.
The implicitly generated copy operations could leave multiple DVBS
instances referring to the same resources, potentially causing invalid
ownership or double deletion.
Since DVBS is not intended to be copied or assigned, prohibit both
operations at compile time to prevent unsafe resource ownership.
cppcheck identified the missing copy constructor and assignment operator
with its noCopyConstructor and noOperatorEq warnings.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Explicitly delete the copy constructor and copy assignment operator for
ATVModSource, which manages resources that should not be shared through
implicit shallow copies.
The implicitly generated copy operations could leave multiple ATVModSource
instances referring to the same resources, potentially causing invalid
ownership or double deletion.
Since ATVModSource is not intended to be copied or assigned, prohibit both
operations at compile time, turning potential runtime errors into
compile-time errors.
cppcheck identified the missing copy constructor and assignment operator
with its noCopyConstructor and noOperatorEq warnings.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Explicitly delete the copy constructor and copy assignment operator for
WDSPRxSink, which manages resources that should not be shared through
implicit shallow copies.
The implicitly generated copy operations could leave multiple WDSPRxSink
instances referring to the same resources, potentially causing invalid
ownership or double deletion.
Since WDSPRxSink is not intended to be copied or assigned, prohibit both
operations at compile time, turning potential runtime errors into
compile-time errors.
cppcheck identified the missing copy constructor and assignment operator
with its noCopyConstructor and noOperatorEq warnings.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Explicitly delete the copy constructor and copy assignment operator for
FileSinkSink, which manages resources that should not be shared through
implicit shallow copies.
The implicitly generated copy operations could leave multiple FileSinkSink
instances referring to the same resources, potentially causing invalid
ownership or double deletion.
Since FileSinkSink is not intended to be copied or assigned, prohibit both
operations at compile time, turning potential runtime errors into
compile-time errors.
cppcheck identified the missing copy constructor and assignment operator
with its noCopyConstructor and noOperatorEq warnings.
Signed-off-by: Robin Getz <rgetz503@gmail.com>