1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-28 21:14:15 -04:00
Commit Graph

12 Commits

Author SHA1 Message Date
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
f4exb eaa5445702 WDSP: more Sonar fixes 2024-08-10 23:46:47 +02:00
f4exb d6159067a8 WDSP: Sonar lint fixes (2) 2024-08-03 11:05:12 +02:00
f4exb d3cbfe0e3c WDSP: SNBA and EQ: replaced static methods and more... 2024-07-27 05:32:45 +02:00
f4exb e81c9cc5b0 WDSP: shift and resampler: replaced static methods 2024-07-26 10:53:58 +02:00
f4exb 994898d9fc WDSP: simplify RXA structs 2024-07-26 10:53:58 +02:00
f4exb 40f7ecdaa0 WDSP: more double precision calculation 2024-07-18 02:08:05 +02:00
f4exb 3a4981046c WDSP: remove wcomplex 2024-07-16 23:18:21 +02:00
f4exb 5891dfa5da WDSP: removed useless mutexes 2024-07-13 23:59:46 +02:00
f4exb 07e179c196 WDSP: fixed resampler 2024-07-11 21:25:53 +02:00
f4exb 7be39b1b55 WDSP: use double internally for SNBA 2024-07-11 21:25:52 +02:00
f4exb a229c583ee WDSP: separate SNBA and BPSNBA 2024-07-11 21:25:52 +02:00