Files
sousa-gecko/dom/gamepad
Sylvestre Ledru b514f97e4d Bug 2052502 - Fix out-of-bounds read in LinuxGamepad by sizing key_map/abs_map with KEY_CNT/ABS_CNT (Coverity CID 1585304) r=cmartin
key_map/abs_map were sized [KEY_MAX]/[ABS_MAX], but evdev admits EV_KEY codes up to KEY_MAX inclusive, so event.code == KEY_MAX read one past the end. Size the arrays and population loops with KEY_CNT/ABS_CNT (matching keyBits/absBits), and bound the untrusted event.code before indexing key_map.

Differential Revision: https://phabricator.services.mozilla.com/D310336
2026-07-06 16:01:50 +00:00
..
…
…
…