1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-27 04:24:12 -04:00
Files
sdrangel/wdsp
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
..
2024-08-05 20:05:59 +02:00
2024-08-02 08:01:46 +02:00
2024-08-05 20:05:59 +02:00
2024-08-05 20:05:59 +02:00
2024-08-03 11:05:12 +02:00
2024-08-02 08:01:46 +02:00
2024-08-05 20:05:59 +02:00
2024-08-05 20:05:59 +02:00
2024-08-02 08:01:46 +02:00
2024-08-02 08:01:46 +02:00
2024-08-02 08:01:46 +02:00
2024-08-05 20:05:59 +02:00
2024-08-05 20:05:59 +02:00
2024-08-02 08:01:46 +02:00
2024-08-05 20:05:59 +02:00
2024-08-01 00:31:28 +02:00
2024-08-05 20:05:59 +02:00
2024-08-05 20:05:59 +02:00
2024-07-11 21:25:52 +02:00
2024-07-29 20:12:44 +02:00
2024-07-29 20:12:44 +02:00
2024-08-05 20:05:59 +02:00
2024-08-05 20:05:59 +02:00
2024-08-05 20:05:59 +02:00
2024-07-16 23:18:21 +02:00
2024-08-07 21:14:09 +02:00
2024-08-07 21:14:09 +02:00
2024-06-16 19:14:31 +02:00
2024-08-05 20:05:59 +02:00
2024-08-05 20:05:59 +02:00
2024-08-01 00:31:28 +02:00
2024-08-01 00:31:28 +02:00
2024-08-05 20:05:59 +02:00
2024-08-02 08:01:46 +02:00
2024-08-02 08:01:46 +02:00
2024-08-10 23:46:47 +02:00
2024-08-10 23:46:47 +02:00
2024-08-10 23:46:47 +02:00
2024-08-05 20:05:59 +02:00
2024-08-09 06:33:00 +02:00
2024-08-03 11:05:12 +02:00
2024-08-10 09:59:42 +02:00
2024-08-10 09:59:42 +02:00
2024-08-07 21:14:09 +02:00
2024-08-03 11:05:12 +02:00
2024-07-16 23:18:21 +02:00
2024-09-05 13:37:46 +03:00
2024-08-10 23:46:47 +02:00
2024-08-10 23:46:47 +02:00
2024-08-10 23:46:47 +02:00
2024-08-10 23:46:47 +02:00
2024-08-07 21:14:09 +02:00
2024-08-07 21:14:09 +02:00
2024-07-11 21:25:52 +02:00
2024-07-11 21:25:52 +02:00
2024-08-03 11:05:12 +02:00
2024-08-03 11:05:12 +02:00
2024-07-11 21:25:52 +02:00
2024-06-16 19:14:31 +02:00
2024-08-03 11:05:12 +02:00
2024-08-01 00:31:28 +02:00
2024-08-03 11:05:12 +02:00
2024-08-07 21:14:09 +02:00
2024-08-07 21:14:09 +02:00
2024-08-07 21:14:09 +02:00
2024-08-03 11:05:12 +02:00
2024-08-03 11:05:12 +02:00
2024-08-03 11:05:12 +02:00
2024-06-16 19:14:31 +02:00
2024-08-03 11:05:12 +02:00
2024-08-10 23:46:47 +02:00
2024-07-14 00:05:10 +02:00
2024-08-05 20:05:59 +02:00
2024-08-03 11:05:12 +02:00
2024-08-03 11:05:12 +02:00
2024-08-03 11:05:12 +02:00
2024-08-03 11:05:12 +02:00
2024-08-10 02:09:07 +02:00
2024-08-10 02:09:07 +02:00
2024-08-10 23:46:47 +02:00
2024-08-03 11:05:12 +02:00
2024-08-03 11:05:12 +02:00
2024-08-03 11:05:12 +02:00
2024-08-03 11:05:12 +02:00
2024-08-01 00:31:28 +02:00
2024-08-03 11:05:12 +02:00
2024-08-03 11:05:12 +02:00
2024-08-07 21:14:09 +02:00
2024-08-03 13:54:42 +02:00
2024-08-03 13:54:42 +02:00
2024-08-03 11:05:12 +02:00
2024-08-03 11:05:12 +02:00

wdsp

WDSP by Warren Pratt, NR0V DSP Library originally written for Windows Ported to Linux and Android by John Melton g0orx/n6lyt Adapted to SDRangel by Edouard Griffiths, F4EXB