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

mavlink: fixed nullptr dereferencing #10063

Merged
merged 1 commit into from
Jul 27, 2018
Merged

mavlink: fixed nullptr dereferencing #10063

merged 1 commit into from
Jul 27, 2018

Conversation

RomanBapst
Copy link
Contributor

@RomanBapst RomanBapst commented Jul 27, 2018

Thanks to @bkueng for helping find this.

@LorenzMeier @dagar Do we need to back-port this?

forwarded

Signed-off-by: Roman <bapstroman@gmail.com>
@RomanBapst
Copy link
Contributor Author

We suppose that in our case this happened because we had a companion computer communication to the FC via mavlink and was using a newer mavlink version. On Monday we can verify that this in indeed the problem.

@dagar
Copy link
Member

dagar commented Jul 27, 2018

We could do a v1.8.1 release with this and a couple other little bug fixes cherry-picked.

int target_system_id = (meta->target_system_ofs != 0) ? ((uint8_t *)msg)[meta->target_system_ofs] : 0;
int target_component_id = (meta->target_component_ofs != 0) ? ((uint8_t *)msg)[meta->target_component_ofs] : 233;
int target_system_id = 0;
int target_component_id = 233;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

233?

@dagar dagar added this to the Release v1.8.1 milestone Jul 27, 2018
@dagar dagar added the bug label Jul 27, 2018
@dagar dagar requested a review from bkueng July 27, 2018 15:42
Copy link
Member

@bkueng bkueng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we should cherry-pick this to stable.

@bkueng bkueng merged commit 37f59ad into master Jul 27, 2018
@bkueng bkueng deleted the pr-mavlink_fix branch July 27, 2018 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants