mavlink / rust-mavlink

MAVLink library for Rust.
https://mavlink.github.io/rust-mavlink/mavlink/
Apache License 2.0
158 stars 79 forks source link

Read implementation for UdpRead needs buffering #238

Closed tjrmarques closed 5 months ago

tjrmarques commented 7 months ago

The Readimplementation for UdpRead needs buffering, as the user may (and will) provide a buffer smaller than the datagram when parsing the MAVLink messages, which causes data loss. This was a regression introduced by commit 7d6a1c44e23b8a2f3df29d176df4bc8c1584697e.