core: Fix out-of-bounds access by TICK event #487
The error is caused in layer_swtich_get_action() and fails to access layer_pressed[][]
This commit is contained in:
parent
f896d3350f
commit
df7ce59d1c
2 changed files with 4 additions and 0 deletions
|
|
@ -531,6 +531,8 @@ void clear_keyboard_but_mods(void)
|
|||
|
||||
bool is_tap_key(keyevent_t event)
|
||||
{
|
||||
if (IS_NOEVENT(event)) { return false; }
|
||||
|
||||
action_t action = layer_switch_get_action(event);
|
||||
|
||||
switch (action.kind.id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue