https://bugs.winehq.org/show_bug.cgi?id=55215 Bug ID: 55215 Summary: user32:text - test_DrawTextCalcRect() crashes on Windows Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: user32 Assignee: wine-bugs(a)winehq.org Reporter: fgouget(a)codeweavers.com user32:text - test_DrawTextCalcRect() crashes on Windows: text.c:537: this is the last test seen before the exception 0500:text: unhandled exception c0000005 at 77CF9F08 See https://test.winehq.org/data/patterns.html#user32:text The crash most likely happens on this line due to the invalid LPRECT pointer: textheight = DrawTextExA((HDC)0xdeadbeef, emptystring, 100000, (LPRECT)0xdeadbeef, 0, 0); Which was introduced by this commit: commit 35c8f15bc67f7602438fe0c39a69ff6ddf6b8297 Author: Fabian Maurer <dark.shadow4(a)web.de> AuthorDate: Mon Jun 12 22:02:45 2023 +0200 Commit: Alexandre Julliard <julliard(a)winehq.org> CommitDate: Wed Jul 5 21:06:38 2023 +0200 user32: Ignore invalid parameters in DrawTextEx when HDC is invalid. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47089 Signed-off-by: Fabian Maurer <dark.shadow4(a)web.de> Note that this crash is specific to the official winetest.exe builds, probably due to some memory layout difference. Regardless it means the test is incorrect. Also this crash was detected by the TestBot so MR!3049 should not have been merged. https://gitlab.winehq.org/wine/wine/-/merge_requests/3049 -- 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.