Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_GPS: discard SBF packets with claimed length > 256 bytes #29399

Merged
merged 2 commits into from
Mar 4, 2025

Conversation

peterbarker
Copy link
Contributor

@peterbarker peterbarker commented Feb 28, 2025

Many thanks to 3DR for supplying the hardware used to debug this!

messages coming in with a size of 24320 bytes.  It takes so long to try to read those bytes in (at the device's message rate) that we time out the GCS and try detecting again

messages coming in with a size of 24320 bytes.  It takes so long to try to read those bytes in (at the device's message rate) that we time out the GCS and try detecting again

@chiara-septentrio this is a MosaicX5 module connected to an ArduPilot periph node. We're reliably seeing bad bytes in the length field; this fix is necessary in case of true corruption, but it's a bit worrying how reliable this problem is!

messages coming in with a size of 24120 bytes.  It takes so long to try to read those bytes in (at the device's message rate) that we time out the GCS and try detecting again
@tridge tridge merged commit c47a208 into ArduPilot:master Mar 4, 2025
103 of 104 checks passed
@peterbarker peterbarker deleted the pr/sbf-parse-fix branch March 4, 2025 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Pending
Development

Successfully merging this pull request may close these issues.

4 participants