-
-
Notifications
You must be signed in to change notification settings - Fork 40.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix two out of bounds accesses from #13330. #13525
Conversation
Good catch! I'm wondering if |
It seems to be a bit of a mess... The declaration was This was the only related differences I found compared to the old split_common/matrix.c file. |
Nice catch! |
And for what it's worth, I did test this on a couple of boards of mine, without issue. But AVR, so ... that may be a factor. |
Description
Two occurrences of
MATRIX_ROWS
weren't properly changed toROWS_PER_HAND
in #13330, causing a crash during boot on at least my Ergodox Infinity (including #13481).(Only the
matrix_init_pins()
one, forROW2COL
, caused the crash on my Ergodox Infinity, but I found both these differences by comparing quantum/matrix.c after the change and quantum/split_common/matrix.c before the change, so both changes should be correct.)Types of Changes
Checklist