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-07-29 08:57:02 +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-10 12:21:04 +02:00
2024-08-01 02:12:58 +02:00
2024-08-05 20:05:59 +02:00
2024-08-05 20:05:59 +02:00
2024-08-10 06:40:35 +02:00
2024-08-09 06:33:00 +02:00
2024-08-10 12:21:04 +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-01 02:12:58 +02:00
2024-08-05 20:05:59 +02:00
2024-08-05 20:05:59 +02:00
2024-08-10 12:21:04 +02:00
2024-08-08 09:09:40 +02:00
2026-01-14 09:03:24 +00: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-10 06:40:35 +02:00
2024-08-10 06:40:35 +02:00
2024-08-05 20:05:59 +02:00
2024-08-02 08:01:46 +02:00
2026-07-25 19:30:38 -04: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 12:21:04 +02:00
2024-08-08 09:09:40 +02:00
2024-08-10 02:06:19 +02:00
2024-08-10 02:06:19 +02:00
2024-08-10 06:40:35 +02:00
2024-08-10 06:40:35 +02:00
2024-08-10 12:21:04 +02:00
2024-08-10 12:21:04 +02:00
2024-08-10 06:40:35 +02:00
2024-08-10 06:40:35 +02:00
2024-08-10 09:59:42 +02:00
2024-08-10 09:59:42 +02:00
2024-08-10 12:21:04 +02:00
2024-07-29 08:57:02 +02:00
2024-08-10 12:21:04 +02:00
2024-08-07 21:14:09 +02:00
2024-08-10 12:21:04 +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-10 12:21:04 +02:00
2024-08-10 06:40:35 +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-01 02:12:58 +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-10 06:40:35 +02:00
2024-08-03 11:05:12 +02:00
2024-08-10 23:46:47 +02:00
2024-07-17 21:50:58 +02:00
2024-08-10 06:40:35 +02:00
2024-07-14 00:05:10 +02:00
2024-08-10 12:21:04 +02:00
2024-08-05 20:05:59 +02:00
2024-08-03 11:05:12 +02:00
2024-08-01 02:12:58 +02:00
2024-08-03 11:05:12 +02:00
2024-07-26 10:53:58 +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
2026-07-25 19:30:38 -04: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
2026-07-22 20:44:45 -04: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-10 12:21:04 +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-10 06:40:35 +02:00
2024-08-10 06:40:35 +02:00
2024-08-03 11:05:12 +02:00
2024-08-03 11:05:12 +02:00