http://bugs.winehq.com/show_bug.cgi?id=1684
Summary: JoystickAImpl_GetDeviceState len 272 is not sizeof DIJOYSTATE Product: Wine Version: 20030508 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-misc AssignedTo: wine-bugs@winehq.com ReportedBy: thogard@abnormal.com
With a logitech flightstick, this error happens with any program that tries to access the joystick.
JoystickAImpl_GetDeviceState len is passed 272 but the size of DIJOYSTATE is 80 It appears that DIJOYSTATE2 size is 272.
Also it appears that the code below that (line605 of dinput/joystick/linux.c) and line 914 if dinput/joystic/linuxinput.c both bay have buffer overflows in their memcopyes since its uses the length passed to it,not the sizeof of the structure.