[Bug 43313] valgrind shows several uninitialized writes in dlls/dinput/ tests/device.c

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Jul 10 18:46:53 CDT 2017


https://bugs.winehq.org/show_bug.cgi?id=43313

--- Comment #1 from Austin English <austinenglish at gmail.com> ---
Also affects dlls/dinput/tests/joystick.c (looks the same to me), and
dlls/dinput8/tests/device.c, which has a slightly different stacktrace:

../../../tools/runtest -q -P wine -T ../../.. -M dinput8.dll -p
dinput8_test.exe.so device && touch device.ok
==27741== Syscall param write(buf) points to uninitialised byte(s)
==27741==    at 0x424DE7F: ??? (syscall-template.S:84)
==27741==    by 0x5CBDDAE: JoystickWImpl_Acquire (joystick_linuxinput.c:718)
==27741==    by 0x5CBDF15: JoystickAImpl_Acquire (joystick_linuxinput.c:736)
==27741==    by 0x4877F5D: enumeration_callback (device.c:273)
==27741==    by 0x5CAEFEA: IDirectInput8AImpl_EnumDevicesBySemantics
(dinput_main.c:1049)
==27741==    by 0x487839A: test_action_mapping (device.c:329)
==27741==    by 0x4879561: func_device (device.c:552)
==27741==    by 0x487CFC4: run_test (test.h:603)
==27741==    by 0x487D416: main (test.h:687)
==27741==  Address 0x4b0f01c is on thread 1's stack
==27741==  in frame #1, created by JoystickWImpl_Acquire
(joystick_linuxinput.c:684)
==27741==  Uninitialised value was created by a stack allocation
==27741==    at 0x5CBDB64: JoystickWImpl_Acquire (joystick_linuxinput.c:684)
==27741==

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list