fix(x11): validate keycode range before keymap allocation #147
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
OragonEfreet/banjo!147
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/x11-keymap-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add validation for min_keycode and max_keycode values from
XDisplayKeycodes before using them in size calculations. Also
add null check for XGetKeyboardMapping result.
Prevents potential issues if X11 returns unexpected negative
values or if keyboard mapping query fails.