gecko-dev/dom/gamepad/windows
Kyle Machulis 3ccc401fc9 Bug 1403185 - Fix button value index lookup oob for Windows Gamepads; r=ted
We can get button indexes in HID usage reports that do not actually
correspond to a button we store, meaning we can overstep bounds of the
button array. Check validity before accessing array.

MozReview-Commit-ID: AAQJLEgy2Ua

--HG--
extra : rebase_source : d665f7713612b76f7b36ca3d2ace1e6659bb5099
2018-03-16 18:20:31 -07:00
..
WindowsGamepad.cpp Bug 1403185 - Fix button value index lookup oob for Windows Gamepads; r=ted 2018-03-16 18:20:31 -07:00