https://bugs.winehq.org/show_bug.cgi?id=53703
Bug ID: 53703 Summary: Crashes when setting a long window title. Product: Wine Version: 7.17 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 Assignee: wine-bugs@winehq.org Reporter: sagawa.aki+winebugs@gmail.com Distribution: Ubuntu
Created attachment 73120 --> https://bugs.winehq.org/attachment.cgi?id=73120 minimal reproducible example
After Wine 7.16, setting a long window title leads crashes. I debugged this issue and created a minimum reproducible example.
Steps to reproduce: 1. Using winecfg, enable "Emulate a virtual desktop" or uncheck "Allow the window manager to decorate the windows". 2. Compile attached source file, e.g. % x86_64-w64-mingw32-gcc -o set_long_win_title.exe set_long_win_title.c -lgdi32 3. Launch the program with wine, i.e. wine set_long_win_title.exe 4. Click inside the window.
Expected result: The window title changes to "xxxxxx..." (a string of 179 x's).
Actual result: It crashes with the following message: 011c:err:virtual:virtual_setup_exception stack overflow 1808 bytes in thread 011c addr 0x7fae1e3a0a8c stack 0x4608f0 (0x460000-0x461000-0x660000)