zmk/app/src
Purdea Andrei 309359b32f
fix(keymaps): fix keypresses that are not in the transform
Before this change, if a matrix position was not present in the transform,
various incorrect behaviors would happen:

1) In some cases out-of-bounds accesses:

Note that the size of the`transform[]` array does not necessarily match
the size of the matrix. So for example if key position
(ZMK_MATRIX_COLS-1, ZMK_MATRIX_ROWS-1) is not present in the transform,
but ends up being pressed, then the array will be accessed beyond its
size, and any data could be returned.

2) In other cases the 0th position in the keymap will be used because
the `transform[]` array is initialized to all zeros.
2023-04-10 03:27:19 -04:00
..
behaviors fix(behaviors): Fix use after free in sticky key 2023-04-09 20:17:40 -07:00
display fix(display): Do not override font size in status screen 2023-04-09 21:36:43 -07:00
events refactor: Move to zephyr/ include paths. 2023-04-05 22:55:38 -07:00
split refactor: Move away from deprecated label usages. 2023-04-05 22:55:38 -07:00
activity.c refactor: Move away from deprecated label usages. 2023-04-05 22:55:38 -07:00
backlight.c refactor: Move to zephyr/ include paths. 2023-04-05 22:55:38 -07:00
battery.c refactor: Move to zephyr/ include paths. 2023-04-05 22:55:38 -07:00
behavior_queue.c refactor: Move away from deprecated label usages. 2023-04-05 22:55:38 -07:00
ble.c refactor: Remove v1 logging vestiges. 2023-04-05 22:55:38 -07:00
combo.c refactor: Move to zephyr/ include paths. 2023-04-05 22:55:38 -07:00
conditional_layer.c refactor: Move to zephyr/ include paths. 2023-04-05 22:55:38 -07:00
endpoints.c refactor: Remove v1 logging vestiges. 2023-04-05 22:55:38 -07:00
event_manager.c refactor: Move to zephyr/ include paths. 2023-04-05 22:55:38 -07:00
ext_power_generic.c refactor: Move away from deprecated label usages. 2023-04-05 22:55:38 -07:00
hid.c refactor: Move to zephyr/ include paths. 2023-04-05 22:55:38 -07:00
hid_listener.c refactor: Move to zephyr/ include paths. 2023-04-05 22:55:38 -07:00
hog.c refactor: Move to zephyr/ include paths. 2023-04-05 22:55:38 -07:00
keymap.c refactor: Move away from deprecated label usages. 2023-04-05 22:55:38 -07:00
kscan.c fix(keymaps): fix keypresses that are not in the transform 2023-04-10 03:27:19 -04:00
main.c refactor: Move away from deprecated label usages. 2023-04-05 22:55:38 -07:00
matrix_transform.c fix(keymaps): fix keypresses that are not in the transform 2023-04-10 03:27:19 -04:00
rgb_underglow.c fix(underglow): Use DT_HAS_CHOSEN properly. 2023-04-05 22:55:38 -07:00
sensors.c refactor: Move away from deprecated label usages. 2023-04-05 22:55:38 -07:00
stdlib.c refactor(splits): Minor cleanups to periph invocation 2022-01-31 23:03:34 -05:00
usb.c refactor: Move to zephyr/ include paths. 2023-04-05 22:55:38 -07:00
usb_hid.c refactor: Move to zephyr/ include paths. 2023-04-05 22:55:38 -07:00
wpm.c refactor: Move to zephyr/ include paths. 2023-04-05 22:55:38 -07:00