Robin Getz
665f5e77ad
wdsp: Prevent potential out-of-bounds array access
...
Fix cppcheck warnings where array elements were accessed before validating
their indices. Reorder conditional expressions to ensure bounds checks are
performed before array accesses, taking advantage of C++ short-circuit
evaluation.
In EMNR::NP::interpM(), check the index limit before accessing xvals[idx].
In SNBA::scanFrame(), verify i is within the merit array bounds before
evaluating merit[i].
These changes improve defensive programming practices and prevent potential
undefined behavior if an index exceeds the valid range. No functional changes.
Signed-off-by: Robin Getz <rgetz503@gmail.com >
2026-07-25 19:30:38 -04:00
Jon Beniston
c40da37faf
wdsp: Remove redundant code that causes stack overflow on Mac. For #2324 .
2025-02-27 13:20:44 +00:00
f4exb
34917a0b21
WDSP: more rework
2024-08-05 20:05:59 +02:00
f4exb
8941835466
WDSP: Sonar lint fixes (1)
2024-08-02 08:01:46 +02:00
f4exb
4ddb6dc9ff
WDSP: removed unnecessary references to RXA and TXA
2024-08-01 02:12:58 +02:00
f4exb
7cb15bbd95
WDSP: EMNR rework
2024-07-29 20:12:44 +02:00
f4exb
6662357bcf
WDSP: ANF, ANR, EMNR: use vectors instead of C arrays and disable copy constructor
2024-07-29 08:57:02 +02:00
f4exb
3c2192603b
WDSP: use vectors instead of C arrays and disable copy constructor (more) and other changes
2024-07-28 11:36:45 +02:00
f4exb
71a5d7a1b4
WDSP: some Sonar fixes
2024-07-26 10:53:58 +02:00
f4exb
994898d9fc
WDSP: simplify RXA structs
2024-07-26 10:53:58 +02:00
f4exb
28262ca5fb
More Sonar bug fixes
2024-07-21 14:20:48 +02:00
f4exb
c32116a330
WDSP: Sonar corrections and cleanup
2024-07-19 08:10:54 +02:00
f4exb
40f7ecdaa0
WDSP: more double precision calculation
2024-07-18 02:08:05 +02:00
f4exb
3f800dd0a9
WDSP: FIR: calculate on double precision as much as possible
2024-07-17 03:04:47 +02:00
f4exb
5891dfa5da
WDSP: removed useless mutexes
2024-07-13 23:59:46 +02:00
f4exb
ed3a57c92c
EMNR: make internal calculations in double precision
2024-07-11 21:25:53 +02:00
f4exb
043d9da47e
WDSP Receiver: added squelch support plus corrections
2024-07-11 21:25:53 +02:00
f4exb
a229c583ee
WDSP: separate SNBA and BPSNBA
2024-07-11 21:25:52 +02:00
f4exb
bc34a759c7
WDSP: nigrate to float mostly
2024-07-11 21:25:52 +02:00
f4exb
8d9dc3b5ed
WDSP corrections
2024-07-11 21:25:52 +02:00
f4exb
cd4ad2cc95
Refactored WDSP initial commit
2024-06-16 19:14:31 +02:00