]> git.mxchange.org Git - flightgear.git/commit
Melchior FRANZ:
authorehofman <ehofman>
Sun, 24 Oct 2004 14:45:52 +0000 (14:45 +0000)
committerehofman <ehofman>
Sun, 24 Oct 2004 14:45:52 +0000 (14:45 +0000)
commit5071415bd13903a17f92fec3c5db5f3e89b426e8
treef0ff5599b3675f25da58144735f38fe5254a27ae
parent0ab2a40c2a2c75d117744f63a1bd74ccc7ea3a4e
Melchior FRANZ:

input.cxx allocates memory for js->getNumAxes() axes and for jsCaps.wNumButtons
or MAX_JOYSTICK_BUTTONS buttons per joystick. But it doesn't check if some
xml config defines bindings for more axes/buttons, in which case it writes
to unallocated memory and causes crashes. This is a real world example:
sidewinder-force-feed-pro.xml defines 7 axes, but only newer versions of
this js do actually have that many. Older ones (-> gameport) don't. The patch
drops unused and unusable bindings.
src/Input/input.cxx