Skip to content

Commit

Permalink
AP_Mount: topotek safely parses version
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Jul 23, 2024
1 parent 4354072 commit 7bd6855
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/AP_Mount/AP_Mount_Topotek.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,9 @@ void AP_Mount_Topotek::gimbal_version_analyse()
version[ver_count++] = ver_num;
ver_num = 0;
}
if (ver_count >= ARRAY_SIZE(version)) {
break;
}
}
} else {
if (data_buf_len >= 1) {
Expand Down

0 comments on commit 7bd6855

Please sign in to comment.