mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
The parser stores received payload bytes at indexes 1 through payload_len, so payload[0] is not part of the frame. Start the XOR at index 1 and reject a maximum-sized length that would address one byte beyond the fixed buffer.