Files
PX4-Autopilot/src
Julian Oes 94adbbf0bd fix(drivers/hott): bound the sensor reply to the receive buffer (#29494)
recv_data() read bytes into the 45 byte message buffer until it saw the
stop byte, with no limit, ignored read() failures, and its caller used
the buffer and id even when nothing valid had arrived.

Pass the buffer size and give up on a reply that does not end within
it or when a read fails, take the id only once it has been received,
and skip processing when no reply came in.

Reported by @TougerF1 and @Hama1cco.

Assisted-by: Claude:claude-opus-5-5

Signed-off-by: Julian Oes <julian@oes.ch>
2026-10-30 05:08:27 +13:00
..