Skip to content

mavlink: fixed nullptr dereferencing#10063

Merged
bkueng merged 1 commit intomasterfrom
pr-mavlink_fix
Jul 27, 2018
Merged

mavlink: fixed nullptr dereferencing#10063
bkueng merged 1 commit intomasterfrom
pr-mavlink_fix

Conversation

@RomanBapst
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants