https://bugs.winehq.org/show_bug.cgi?id=38695
Bug ID: 38695 Summary: valgrind shows uninitialized memory in dlls/gdi32/freetype.c:WineEngInit() (win64) Product: Wine Version: 1.7.44 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase, valgrind, win64 Severity: normal Priority: P2 Component: gdi32 Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com Distribution: ---
Shows up in a lot of tests, I see that function mentioned 4662 times in the whole log :)
==3240== Conditional jump or move depends on uninitialised value(s) ==3240== at 0x5E4EC9A: faces_equal (freetype.c:1383) ==3240== by 0x5E4F095: insert_face_in_family_list (freetype.c:1440) ==3240== by 0x5E4FA34: load_face (freetype.c:1576) ==3240== by 0x5E4FB20: load_face (freetype.c:1589) ==3240== by 0x5E4FF17: load_font_list_from_cache (freetype.c:1668) ==3240== by 0x5E594BA: WineEngInit (freetype.c:4141) ==3240== by 0x5E693FE: DllMain (gdiobj.c:658) ==3240== by 0x5E8E63E: __wine_spec_dll_entry (dll_entry.c:40) ==3240== by 0x4C4240F: call_dll_entry_point (loader.c:185) ==3240== by 0x4C45000: MODULE_InitDLL (loader.c:1080) ==3240== by 0x4C45401: process_attach (loader.c:1169) ==3240== by 0x4C453AA: process_attach (loader.c:1161) ==3240== by 0x4C453AA: process_attach (loader.c:1161) ==3240== by 0x4C453AA: process_attach (loader.c:1161) ==3240== by 0x4C4ABF5: attach_process_dlls (loader.c:2797) ==3240== by 0x4419D96: ??? (port.c:60) ==3240== Uninitialised value was created by a client request ==3240== at 0x4C3A971: mark_block_uninitialized (heap.c:208) ==3240== by 0x4C3AB20: initialize_block (heap.c:239) ==3240== by 0x4C400AD: RtlAllocateHeap (heap.c:1716) ==3240== by 0x5E4F685: load_face (freetype.c:1530) ==3240== by 0x5E4FB20: load_face (freetype.c:1589) ==3240== by 0x5E4FF17: load_font_list_from_cache (freetype.c:1668) ==3240== by 0x5E594BA: WineEngInit (freetype.c:4141) ==3240== by 0x5E693FE: DllMain (gdiobj.c:658) ==3240== by 0x5E8E63E: __wine_spec_dll_entry (dll_entry.c:40) ==3240== by 0x4C4240F: call_dll_entry_point (loader.c:185) ==3240== by 0x4C45000: MODULE_InitDLL (loader.c:1080) ==3240== by 0x4C45401: process_attach (loader.c:1169) ==3240== by 0x4C453AA: process_attach (loader.c:1161) ==3240== by 0x4C453AA: process_attach (loader.c:1161) ==3240== by 0x4C453AA: process_attach (loader.c:1161) ==3240== by 0x4C4ABF5: attach_process_dlls (loader.c:2797) ==3240== by 0x4419D96: ??? (port.c:60) ==3240==
https://bugs.winehq.org/show_bug.cgi?id=38695
--- Comment #1 from Austin English austinenglish@gmail.com --- Related: ==17918== Conditional jump or move depends on uninitialised value(s) ==17918== at 0x304BC45FD1: ??? (in /usr/lib64/libfreetype.so.6.11.4) ==17918== by 0x304BC13AF8: FT_Request_Size (in /usr/lib64/libfreetype.so.6.11.4) ==17918== by 0x304BC13C64: FT_Set_Pixel_Sizes (in /usr/lib64/libfreetype.so.6.11.4) ==17918== by 0x5B99D83: OpenFontFace (freetype.c:4310) ==17918== by 0x5B9E188: freetype_SelectFont (freetype.c:5416) ==17918== by 0x706472C: X11DRV_SelectFont (init.c:319) ==17918== by 0x709E760: xrenderdrv_SelectFont (xrender.c:841) ==17918== by 0x5B81F23: FONT_SelectObject (font.c:716) ==17918== by 0x5BAAE85: SelectObject (gdiobj.c:1174) ==17918== by 0x5B389A6: DC_InitDC (dc.c:273) ==17918== by 0x5B3A2DD: CreateDCW (dc.c:670) ==17918== by 0x5783A54: LoadImageW (cursoricon.c:2671) ==17918== by 0x578370B: LoadImageA (cursoricon.c:2618) ==17918== by 0x5780B9C: LoadCursorA (cursoricon.c:1868) ==17918== by 0x5770CFF: register_builtin (class.c:428) ==17918== by 0x5770D9F: register_builtins (class.c:440) ==17918== by 0x4C8DF82: RtlRunOnceExecuteOnce (sync.c:1489) ==17918== by 0x7B89CEC0: InitOnceExecuteOnce (sync.c:2356) ==17918== by 0x5770E8C: register_builtin_classes (class.c:461) ==17918== by 0x579DC4B: load_driver (driver.c:169) ==17918== Uninitialised value was created by a client request ==17918== at 0x4C3A971: mark_block_uninitialized (heap.c:208) ==17918== by 0x4C3AB20: initialize_block (heap.c:239) ==17918== by 0x4C400AD: RtlAllocateHeap (heap.c:1716) ==17918== by 0x5B8F685: load_face (freetype.c:1530) ==17918== by 0x5B8FB20: load_face (freetype.c:1589) ==17918== by 0x5B8FF17: load_font_list_from_cache (freetype.c:1668) ==17918== by 0x5B994BA: WineEngInit (freetype.c:4141) ==17918== by 0x5BA93FE: DllMain (gdiobj.c:658) ==17918== by 0x5BCE63E: __wine_spec_dll_entry (dll_entry.c:40) ==17918== by 0x4C4240F: call_dll_entry_point (loader.c:185) ==17918== by 0x4C45000: MODULE_InitDLL (loader.c:1080) ==17918== by 0x4C45401: process_attach (loader.c:1169) ==17918== by 0x4C453AA: process_attach (loader.c:1161) ==17918== by 0x4C453AA: process_attach (loader.c:1161) ==17918== by 0x4C453AA: process_attach (loader.c:1161) ==17918== by 0x4C4ABF5: attach_process_dlls (loader.c:2797) ==17918== by 0x4419D96: ??? (port.c:60) ==17918==
https://bugs.winehq.org/show_bug.cgi?id=38695
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- Patch sent https://www.winehq.org/pipermail/wine-patches/2015-June/140130.html.
https://bugs.winehq.org/show_bug.cgi?id=38695
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |885394bb0ae83925f57c9066da2 | |d06f6e011fa17 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- Fixed with 885394bb0ae83925f57c9066da2d06f6e011fa17.
https://bugs.winehq.org/show_bug.cgi?id=38695
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.46.