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
Robin Getz
95548a92aa
WDSP: Fix invalid iterator ranges in SPHP flush
...
Correct std::fill() calls in SPHP::flush() that used x0.end() as the
end iterator when clearing x1, y0, and y1.
The incorrect ranges were likely introduced by a copy/paste error and
resulted in iterator pairs from different containers being used
together, causing undefined behavior.
Use each buffer's own end iterator when clearing its contents.
Detected by cppcheck's mismatchingContainer check.
Signed-off-by: Robin Getz <rgetz503@gmail.com >
2026-07-22 20:44:45 -04:00
Jon Beniston
7584a6e87c
Add library dependencies to fix Mac build. Fix library path for InmarsatC on Mac.
2026-01-14 09:03:24 +00:00
Jon Beniston
c40da37faf
wdsp: Remove redundant code that causes stack overflow on Mac. For #2324 .
2025-02-27 13:20:44 +00:00
Edouard Griffiths
f522d88fc5
Merge pull request #2252 from srcejon/freq_scanner
...
Update CMakeLists.txt to allow static libraries to be built
2024-09-13 21:07:04 +02:00
srcejon
1df07b21ae
Update CMakeLists.txt to allow static libraries to be built, as well as shared.
...
Add BUILD_BENCH, BUILD_SHARED_LIBS, ENABLE_AARONIARTSA and ENABLE_METIS options.
2024-09-11 20:16:40 +01:00
DreamNik
f694ba04b8
Fix compilation warnings and errors
2024-09-05 13:37:46 +03:00
f4exb
eaa5445702
WDSP: more Sonar fixes
2024-08-10 23:46:47 +02:00
f4exb
ef0255f2bb
WDSP: impulse responses refactoring (5)
2024-08-10 12:21:04 +02:00
f4exb
12f4d0a0fd
WDSP: FIROPT rework
2024-08-10 09:59:42 +02:00
f4exb
e48dc22793
WDSP: impulse responses refactoring (4)
2024-08-10 06:40:35 +02:00
f4exb
ad3e7dfe19
WDSP: fixed missing decalc in USLEW
2024-08-10 02:09:07 +02:00
f4exb
28cfad98ff
WDSP: impulse responses refactoring (3)
2024-08-10 02:06:19 +02:00
f4exb
7319e4cb88
WDSP: impulse responses refactoring (2)
2024-08-09 06:33:00 +02:00
f4exb
62f05b3706
WDSP: impulse responses refactoring (1)
2024-08-08 09:09:40 +02:00
f4exb
130d40c218
WDSP: more rework
2024-08-07 21:14:09 +02:00
f4exb
fe08cd4a78
WDSP: FIRCORE rework
2024-08-06 06:26:53 +02:00
f4exb
34917a0b21
WDSP: more rework
2024-08-05 20:05:59 +02:00
f4exb
de756413e8
WDSP: RXA and TXA rework
2024-08-03 13:54:42 +02:00
f4exb
d6159067a8
WDSP: Sonar lint fixes (2)
2024-08-03 11:05:12 +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
cd38f356d0
WDSP: rework SSQL and PANEL classes
2024-08-01 02:01:09 +02:00
f4exb
71fe079ee3
WDSP: rework former IIR classes
2024-08-01 00:31:28 +02:00
f4exb
b9e3b10a6b
WDSP: split iir source files
2024-07-31 01:37:17 +02:00
f4exb
913d5bf7b0
WDSP: CBL rework
2024-07-30 23:29:37 +02:00
f4exb
350117b9a9
WDSP: SIPHON rework
2024-07-30 22:52:21 +02:00
f4exb
575fa755f8
WDSP: BANDPASS rework
2024-07-30 00:45:32 +02:00
f4exb
bc06095a56
WDSP: WCPAGC rework
2024-07-29 23:31:43 +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
86f27fc4d6
WDSP: NBP: use vectors instead of C arrays and disable copy constructor
2024-07-27 23:29:15 +02:00
f4exb
8a267240df
WDSP: ANB, NOB, ANSQ: use vectors instead of C arrays and disable copy constructor
2024-07-27 13:45:09 +02:00
f4exb
59f97f3912
WDSP: restore ANB::flush and re-enable Windows and Mac builds
2024-07-27 06:01:39 +02:00
f4exb
d3cbfe0e3c
WDSP: SNBA and EQ: replaced static methods and more...
2024-07-27 05:32:45 +02:00
f4exb
8c08f40b54
WDSP: FMD and FMSQ: replaced static methods
2024-07-26 19:10:53 +02:00
f4exb
a239fe47e9
WDSP: AMSQ and AMD: replaced static methods
2024-07-26 17:52:34 +02:00
f4exb
dac4bc08df
WDSP: sender: replaced static methods
2024-07-26 10:53:58 +02:00
f4exb
0bd4bbe0d4
WDSP: BPSNBA: replaced static methods
2024-07-26 10:53:58 +02:00
f4exb
cc8c6d8004
WDSP: notched bandpass filter: replaced static methods
2024-07-26 10:53:58 +02:00
f4exb
42fa9f5eb2
WDSP: meter: replaced static methods
2024-07-26 10:53:58 +02:00
f4exb
8842b56080
WDSP: generator: replaced static methods (RXA)
2024-07-26 10:53:58 +02:00
f4exb
49dc91cb6b
WDSP: minor adjustments
2024-07-26 10:53:58 +02:00
f4exb
e81c9cc5b0
WDSP: shift and resampler: replaced static methods
2024-07-26 10:53:58 +02:00
f4exb
71a5d7a1b4
WDSP: some Sonar fixes
2024-07-26 10:53:58 +02:00
f4exb
3bdfeb54ff
WDSP: added missing exports for Mac and Windows
2024-07-26 10:53:58 +02:00
f4exb
b975658758
WDSP: Nose blanker: 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
4b38488b51
WDSP: extend parameters range of noise blanker
2024-07-22 05:27:44 +02:00