Match Key override index type to bounds type to prevent overflow (#25939)
Use uint16_t to store key override index Co-authored-by: simon <ijouwy@gmail.com>
This commit is contained in:
parent
f749cf9940
commit
e1c41f1b08
1 changed files with 1 additions and 1 deletions
|
|
@ -250,7 +250,7 @@ static bool try_activating_override(const uint16_t keycode, const uint8_t layer,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (uint8_t i = 0; i < key_override_count(); i++) {
|
for (uint16_t i = 0; i < key_override_count(); i++) {
|
||||||
const key_override_t *const override = key_override_get(i);
|
const key_override_t *const override = key_override_get(i);
|
||||||
|
|
||||||
// End of array
|
// End of array
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue