1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-11 14:03:56 -04:00
Files
sdrangel/plugins/channeltx
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
..
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00
2026-07-04 18:22:23 +02:00
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00
2026-05-04 06:00:17 +02:00