https://bugs.winehq.org/show_bug.cgi?id=36283
Bug ID: 36283 Summary: valgrind shows an invalid read in imm32/tests/imm32.c Product: Wine Version: 1.7.18 Hardware: x86 OS: Linux Status: NEW Keywords: download, source Severity: normal Priority: P2 Component: imm32 Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com
==28442== Invalid read of size 4 ==28442== at 0x400AD40: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==28442== by 0x4ED078F6: FT_Stream_ReadAt (in /usr/lib/libfreetype.so.6.10.2) ==28442== by 0x4ED45CA7: ??? (in /usr/lib/libfreetype.so.6.10.2) ==28442== by 0x4ED06223: FT_Load_Sfnt_Table (in /usr/lib/libfreetype.so.6.10.2) ==28442== by 0x50B72E9: get_font_data (freetype.c:4422) ==28442== by 0x50B89E7: get_gasp_flags (freetype.c:4873) ==28442== by 0x50BAF28: freetype_SelectFont (freetype.c:5489) ==28442== by 0x54C7F20: X11DRV_SelectFont (init.c:319) ==28442== by 0x54FE488: xrenderdrv_SelectFont (xrender.c:858) ==28442== by 0x50A1F7F: FONT_SelectObject (font.c:723) ==28442== by 0x50C5C37: SelectObject (gdiobj.c:1174) ==28442== by 0x4B70F46: get_text_metr_size (sysparams.c:472) ==28442== by 0x4B717AC: normalize_nonclientmetrics (sysparams.c:634) ==28442== by 0x4B73F45: SystemParametersInfoW (sysparams.c:1583) ==28442== by 0x4B77496: GetSystemMetrics (sysparams.c:2414) ==28442== by 0x4B77647: GetSystemMetrics (sysparams.c:2433) ==28442== by 0x4B8D9D7: WINPOS_GetMinMaxInfo (winpos.c:774) ==28442== by 0x4B859BB: WIN_CreateWindowEx (win.c:1568) ==28442== by 0x4B862E0: CreateWindowExA (win.c:1719) ==28442== by 0x4967EC9: test_ImmDefaultHwnd (imm32.c:708) ==28442== Address 0x582d5fc is on thread 1's stack ==28442==
https://bugs.winehq.org/show_bug.cgi?id=36283
--- Comment #1 from Austin English austinenglish@gmail.com --- Also a lot of: ==13108== Invalid read of size 1 ==13108== at 0x54CA862: ??? (in /usr/lib32/libfreetype.so.6.10.0) ==13108== by 0x54D183A: ??? (in /usr/lib32/libfreetype.so.6.10.0) ==13108== by 0x54D2E10: ??? (in /usr/lib32/libfreetype.so.6.10.0) ==13108== by 0x54C207E: FT_Load_Glyph (in /usr/lib32/libfreetype.so.6.10.0) ==13108== by 0x530F3EC: get_glyph_outline (freetype.c:6393) ==13108== by 0x531346C: freetype_GetGlyphOutline (freetype.c:7579) ==13108== by 0x52F970E: GetGlyphOutlineW (font.c:2821) ==13108== by 0x52C2A47: cache_glyph_bitmap (graphics.c:693) ==13108== by 0x52C2E58: render_string (graphics.c:762) ==13108== by 0x52C32E6: dibdrv_ExtTextOut (graphics.c:860) ==13108== by 0x52BFA66: windrv_ExtTextOut (dc.c:738) ==13108== by 0x52F85AE: ExtTextOutW (font.c:2447) ==13108== by 0x4ECA340: DrawTextExW (text.c:1012) ==13108== by 0x4ECA93C: DrawTextW (text.c:1168) ==13108== by 0x4EAF410: NC_DrawCaption (nonclient.c:971) ==13108== by 0x4EAF7B1: NC_DoNCPaint (nonclient.c:1055) ==13108== by 0x4EAFBA6: NC_HandleNCActivate (nonclient.c:1146) ==13108== by 0x4E5F2A2: DEFWND_DefWinProc (defwnd.c:330) ==13108== by 0x4E60E36: DefWindowProcW (defwnd.c:996) ==13108== by 0x4E746E2: DefWindowProcT (edit.c:4643) ==13108== Address 0x5ca654e is on thread 1's stack ==13108==
https://bugs.winehq.org/show_bug.cgi?id=36283
--- Comment #2 from Austin English austinenglish@gmail.com --- Also: ==19941== Invalid read of size 1 ==19941== at 0x54D3623: ??? (in /usr/lib32/libfreetype.so.6.10.0) ==19941== by 0x54DA69A: ??? (in /usr/lib32/libfreetype.so.6.10.0) ==19941== by 0x549C234: FT_Get_Char_Index (in /usr/lib32/libfreetype.so.6.10.0) ==19941== by 0x52EE1FF: get_glyph_index (freetype.c:6024) ==19941== by 0x52F385D: get_glyph_index_linked (freetype.c:7670) ==19941== by 0x52EEB62: get_glyph_outline (freetype.c:6244) ==19941== by 0x52F3F0E: freetype_GetTextExtentExPoint (freetype.c:7816) ==19941== by 0x52D283F: get_char_positions (font.c:336) ==19941== by 0x52D4B8C: GetTextExtentExPointW (font.c:1330) ==19941== by 0x52D440F: GetTextExtentPoint32W (font.c:1149) ==19941== by 0x52D4847: GetTextExtentPointW (font.c:1257) ==19941== by 0x52DBF26: GdiGetCharDimensions (font.c:3744) ==19941== by 0x4EA0F15: get_text_metr_size (sysparams.c:480) ==19941== by 0x4EA7425: GetSystemMetrics (sysparams.c:2415) ==19941== by 0x4EA75A7: GetSystemMetrics (sysparams.c:2433) ==19941== by 0x4EBD9C3: WINPOS_GetMinMaxInfo (winpos.c:774) ==19941== by 0x4EB591B: WIN_CreateWindowEx (win.c:1568) ==19941== by 0x4EB6240: CreateWindowExA (win.c:1719) ==19941== by 0x4CA4E79: test_ImmDefaultHwnd (imm32.c:708) ==19941== by 0x4CA9218: func_imm32 (imm32.c:1418) ==19941== Address 0x5c84776 is on thread 1's stack ==19941==
https://bugs.winehq.org/show_bug.cgi?id=36283
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |valgrind
https://bugs.winehq.org/show_bug.cgi?id=36283
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #3 from Austin English austinenglish@gmail.com --- I"m not seeing this in 4.0-rc2 and lrwxrwxrwx 1 root root 21 Nov 4 07:10 /usr/lib32/libfreetype.so -> libfreetype.so.6.16.1 lrwxrwxrwx 1 root root 21 Nov 4 07:10 /usr/lib32/libfreetype.so.6 -> libfreetype.so.6.16.1 -rwxr-xr-x 1 root root 792468 Nov 4 07:10 /usr/lib32/libfreetype.so.6.16.1
Not sure who's end this was fixed on, so just marking fixed. If someone wants to make it UPSTREAM, feel free.
https://bugs.winehq.org/show_bug.cgi?id=36283
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.0-rc3.