1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-11 05:53:45 -04:00
Commit Graph

13 Commits

Author SHA1 Message Date
Robin Getz ee24189bd2 modais: Initialize output bytes before HDLC bit packing
The HDLC encoder accumulated bits into m_bits using the |= operator
without first initializing the first byte. This resulted in an
uninitialized read of m_bits[0] when encoding the first bit of a
packet.

Initialize each output byte when writing its first bit, ensuring the
buffer contains a defined value before bits are OR'ed into it. This
also makes addBit() self-contained, eliminating the need for callers to
pre-initialize the current output byte.

Reported by Coverity.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
2026-08-02 18:53:58 -04:00
Robin Getz 862e838b65 modais: Initialize remaining AISModSource members
Cppcheck reported several AISModSource members that were not initialized
by the constructor. Initialize the remaining scalar members in the
constructor initializer list to establish a well-defined initial state
and avoid undefined behavior if they are accessed before being assigned.

Reported by cppcheck.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
2026-08-02 18:52:10 -04:00
f4exb 47fba8c980 Apply atomic settings to channel Tx plugins. Fixes #1329 2026-02-01 12:26:46 +01:00
f4exb 9ce0810a29 Rewriting of copyright notices for plugins/channeltx. Part of #1893 2023-11-18 06:36:53 +01:00
f4exb 9c063410fb Message pipes rework: more renaming 2022-03-02 23:57:35 +01:00
f4exb 7bbc2749eb Message pipes rework (2) 2022-02-25 23:47:53 +01:00
f4exb 4c2ca8fa20 Data pipes redesign 2022-02-20 23:18:29 +01:00
f4exb 006da4e872 AIS mod: make it effectively work in server mode with remote control. AIS demod: added baud rate in settings API 2021-11-12 00:12:02 +01:00
f4exb 8e924a3dba AIS mod and demod, IEEE 802.15.4 mod: scope and spectrum feed optimization 2021-07-16 02:40:44 +02:00
f4exb 3c50274d1a Demod Analyzer: allow complex input. Fixes #932 2021-06-30 19:40:04 +02:00
f4exb 0d4da317b3 Demod Analyzer: fixed sample rate handling. Fixes #931 2021-06-29 21:47:27 +02:00
f4exb e9d51c99a7 GLScope redesign: allow multiple I/Q streams sent to ScopeVis 2021-05-31 15:56:45 +02:00
Jon Beniston 1ac835260e Add AIS mod, demod and feature. 2021-05-07 21:50:27 +01:00