RC_Channel: Fix possible user induced out of bounds write
CID 308348
This commit is contained in:
parent
cbe68b4a91
commit
e7ebea55d2
@ -541,7 +541,7 @@ bool RC_Channels::duplicate_options_exist()
|
||||
continue;
|
||||
}
|
||||
const uint16_t option = c->option.get();
|
||||
if (option > sizeof(auxsw_option_counts)) {
|
||||
if (option >= sizeof(auxsw_option_counts)) {
|
||||
continue;
|
||||
}
|
||||
auxsw_option_counts[option]++;
|
||||
|
Loading…
Reference in New Issue
Block a user