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_Camera: stop casting int16_t to uint8_t in read result #24300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peterbarker
Copy link
Contributor

There's a bit of a trust issue going on here that the address implied by the array dereference is valid.

Pre-existing, however.

@tridge
Copy link
Contributor

tridge commented Jul 18, 2023

@andyp1per need you to test

if (_pending_request._recv_response_length == 0) {
// Only start receiving packet when we found a header
if (c != RUNCAM_HEADER) {
if (_pending_request._recv_buf[_pending_request._recv_response_length] != RUNCAM_HEADER) {
Copy link
Contributor

Choose a reason for hiding this comment

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

could be [0]

@tridge tridge removed the DevCallEU label Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants