https://bugs.winehq.org/show_bug.cgi?id=46347
Bug ID: 46347 Summary: ole32/tests/clipboard.c shows an invalid read in test_flushed_getdata() Product: Wine Version: 4.0-rc3 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase, valgrind Severity: normal Priority: P2 Component: ole32 Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com Distribution: Gentoo
../../../tools/runtest -q -P wine -T ../../.. -M ole32.dll -p ole32_test.exe.so clipboard && touch clipboard.ok ==17967== Invalid read of size 2 ==17967== at 0x7B443E1B: GlobalFree (heap.c:762) ==17967== by 0x4E5DCE3: get_stgmed_for_storage (clipboard.c:1303) ==17967== by 0x4E5E2DB: snapshot_GetData (clipboard.c:1467) ==17967== by 0x4A8132D: IDataObject_GetData (objidl.h:6604) ==17967== by 0x4A8132D: test_flushed_getdata (???:0) ==17967== by 0x4A83A71: func_clipboard (clipboard.c:1875) ==17967== by 0x4AD412F: run_test (test.h:617) ==17967== by 0x4AD4B6D: main (test.h:701) ==17967== Address 0x492ac78 is 280 bytes inside a block of size 306 free'd ==17967== at 0x7BC48418: notify_free (heap.c:268) ==17967== by 0x7BC4AFB7: RtlFreeHeap (heap.c:1772) ==17967== by 0x7B4433BC: HeapFree (heap.c:276) ==17967== by 0x7B455BEC: load_library (module.c:985) ==17967== by 0x7B455C94: LoadLibraryExW (module.c:1035) ==17967== by 0x51B4AE5: RegLoadMUIStringW (registry.c:3243) ==17967== by 0x7B475895: reg_load_mui_string (time.c:383) ==17967== by 0x7B4771D1: GetDynamicTimeZoneInformation (time.c:1475) ==17967== by 0x7B4776D5: TIMEZONE_InitRegistry (time.c:827) ==17967== by 0x7B44526D: process_attach (kernel_main.c:92) ==17967== by 0x7B445371: DllMain (kernel_main.c:142) ==17967== by 0x7B47F372: __wine_spec_dll_entry (dll_entry.c:40) ==17967== by 0x7BC4CFB1: ??? (in /home/austin/wine-valgrind/dlls/ntdll/ntdll.dll.so) ==17967== by 0x7BC5074B: MODULE_InitDLL (loader.c:1218) ==17967== by 0x7BC50A3E: process_attach (loader.c:1312) ==17967== by 0x7BC50977: process_attach (loader.c:1298) ==17967== by 0x7BC50977: process_attach (loader.c:1298) ==17967== by 0x7BC50977: process_attach (loader.c:1298) ==17967== by 0x7BC50977: process_attach (loader.c:1298) ==17967== by 0x7BC532E9: attach_dlls (loader.c:3298) ==17967== Block was alloc'd at ==17967== at 0x7BC483AD: notify_alloc (heap.c:260) ==17967== by 0x7BC4B8D1: RtlAllocateHeap (heap.c:1726) ==17967== by 0x7B443394: HeapAlloc (heap.c:271) ==17967== by 0x7B4558B6: MODULE_get_dll_load_path (module.c:759) ==17967== by 0x7B455AC9: load_library (module.c:951) ==17967== by 0x7B455C94: LoadLibraryExW (module.c:1035) ==17967== by 0x51B4AE5: RegLoadMUIStringW (registry.c:3243) ==17967== by 0x7B475895: reg_load_mui_string (time.c:383) ==17967== by 0x7B4771D1: GetDynamicTimeZoneInformation (time.c:1475) ==17967== by 0x7B4776D5: TIMEZONE_InitRegistry (time.c:827) ==17967== by 0x7B44526D: process_attach (kernel_main.c:92) ==17967== by 0x7B445371: DllMain (kernel_main.c:142) ==17967== by 0x7B47F372: __wine_spec_dll_entry (dll_entry.c:40) ==17967== by 0x7BC4CFB1: ??? (in /home/austin/wine-valgrind/dlls/ntdll/ntdll.dll.so) ==17967== by 0x7BC5074B: MODULE_InitDLL (loader.c:1218) ==17967== by 0x7BC50A3E: process_attach (loader.c:1312) ==17967== by 0x7BC50977: process_attach (loader.c:1298) ==17967== by 0x7BC50977: process_attach (loader.c:1298) ==17967== by 0x7BC50977: process_attach (loader.c:1298) ==17967== by 0x7BC50977: process_attach (loader.c:1298)