[Bug 50924] New: vsscanf/vfscanf crashes wine
https://bugs.winehq.org/show_bug.cgi?id=50924 Bug ID: 50924 Summary: vsscanf/vfscanf crashes wine Product: Wine Version: 6.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: tb442(a)cornell.edu Distribution: --- A call to vsscanf / vfscanf causes wine to crash where there's no problem on linux or windows. Preceeding it with a call to just sscanf solves the problem I've created a minimal working example that you can find at https://github.com/Radvendii/vsscanf_wine_bug. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=50924 --- Comment #1 from tb442(a)cornell.edu --- I should mention I'm on NixOS using wine-6.0. Let me know if there's other system information that would be helpful. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=50924 KRosUser <kyle.kcsoftwares@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kyle.kcsoftwares@gmail.com --- Comment #2 from KRosUser <kyle.kcsoftwares@gmail.com> --- Did you retry on Wine 11.4 ? -- 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.
http://bugs.winehq.org/show_bug.cgi?id=50924 Janne <janne.kekkonen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |janne.kekkonen@gmail.com --- Comment #3 from Janne <janne.kekkonen@gmail.com> --- Hello, built the application with gcc version 15.10 on Windows11. Commands used: gcc -m32 main.c -o main_32.exe and gcc -m64 main.c -o main_64.exe Test was performed on Windows11 and Wine 11.4. There was no crash. Windows11:
systeminfo | grep "OS Name" OS Name: Microsoft Windows 11 Pro
sha1sum main_*.exe 692bb8787562902726702a59f3107179b272c2fd *main_32.exe b484bf65394524cec6e4831c0f66e5fac0d4c19b *main_64.exe
./main_32.exe
./main_64.exe
Wine11.4:
WINEPREFIX=~/wine_tst/ wine --version wine-11.4
sha1sum main_*.exe 692bb8787562902726702a59f3107179b272c2fd main_32.exe b484bf65394524cec6e4831c0f66e5fac0d4c19b main_64.exe
WINEPREFIX=~/wine_tst/ wine main_32.exe
WINEPREFIX=~/wine_tst/ wine main_64.exe
After this, i modified original code so that return value of vsscanf is printed. Windows11:
systeminfo | grep "OS Name" OS Name: Microsoft Windows 11 Pro sha1sum main_*_mod.exe 03a826bc15b59e8cdde503d69f9ef0a259dce217 *main_32_mod.exe b43e8f6e6a2d38f9479ee63b6734c62ab637c7d7 *main_64_mod.exe ./main_32_mod.exe vsscanf return:0 ./main_64_mod.exe vsscanf return:0
file main_32_mod.exe main_32_mod.exe: PE32 executable for MS Windows 4.00 (console), Intel i386, 17 sections file main_64_mod.exe main_64_mod.exe: PE32+ executable for MS Windows 5.02 (console), x86-64, 19 sections
Wine11.4:
WINEPREFIX=~/wine_tst/ wine --version wine-11.4 sha1sum main_*_mod.exe 03a826bc15b59e8cdde503d69f9ef0a259dce217 main_32_mod.exe b43e8f6e6a2d38f9479ee63b6734c62ab637c7d7 main_64_mod.exe WINEPREFIX=~/wine_tst/ wine main_32_mod.exe vsscanf return:0
WINEPREFIX=~/wine_tst/ wine main_64_mod.exe vsscanf return:0
file main_32_mod.exe main_32_mod.exe: PE32 executable (console) Intel 80386, for MS Windows, 17 sections file main_64_mod.exe main_64_mod.exe: PE32+ executable (console) x86-64, for MS Windows, 19 sections
-- 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.
http://bugs.winehq.org/show_bug.cgi?id=50924 Janne <janne.kekkonen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|janne.kekkonen@gmail.com | -- 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.
http://bugs.winehq.org/show_bug.cgi?id=50924 --- Comment #4 from KRosUser <kyle.kcsoftwares@gmail.com> --- to be CLOSED / RESOLVED ? -- 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.
participants (2)
-
WineHQ Bugzilla -
WineHQ Bugzilla