-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Bug Found in msgID #332 mavlink protocol BOF #18369
Comments
Thanks for reporting. It appears to be a slight discrepancy with the size difference of the uORB msg and mavlink. PX4-Autopilot/src/modules/mavlink/mavlink_receiver.cpp Lines 1913 to 1951 in e31dd34
|
dagar
added a commit
that referenced
this issue
Oct 6, 2021
@BOB4Drone could you try #18371? |
Crash did not occur when tested on simulator and drone board. |
dagar
added a commit
that referenced
this issue
Oct 6, 2021
Thanks for the quick test @BOB4Drone. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce the behavior:
example msgID332 packet
fdef0000d2ff004c010003a8ba951e05809b5f1b8c9069167f55c709ad76837e1a585c22264e6a3785ce716070b9ee1954a849e718eb9bb2bdcc21a27d7c75075d3553250d12b7abd7c267c91e2c31ad1e0ce5fc3fd0403c104fb304935a8fa5b399a70fa94b5fcebdafc4cd0dc0c144dd8ddfd7cbea9c124490d4c80671cab01dce514f299b9598f8a193156c981097892bdead25a0b63e7572f73325bd05ff57911407eed28b44f339d09c945812a81661bf8cf633f5e1f4836f4bbea984c8a37e780b53fc9e93df755c224e40326a27e767c3279e3c19fc1af681cf0de9e14b3bbdf67646f2e783a9e2d506eb0354974f14c34c3a03777ad3b9
Describe the bug
The lower 1 byte of MAVLINK PROTOCOL with msgID number 332 is "valid_points".
We can set "valid_points" to a maximum of 0xff.
BOF occurs in the source code line below when "valid_points" is set to a large value.
I found it in sitl mode and also checked it on the drone board.
source code
https://github.com/PX4/PX4-Autopilot/blob/master/src/modules/mavlink/mavlink_receiver.cpp
PX4-Autopilot/src/modules/mavlink/mavlink_receiver.cpp (line 1942 ~ line 1944)
TEST board
px4_fmu-v5
nxp_fmuk66-v3
log file page
https://logs.px4.io/plot_app?log=1b47a1c3-3afe-4518-9628-f3284d67fb41
The text was updated successfully, but these errors were encountered: