https://bugs.winehq.org/show_bug.cgi?id=36651
Bug ID: 36651 Summary: shlwapi/tests/path.c: stack smashing detected (valgrind/gcc-4.9.0) Product: Wine Version: 1.7.19 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase Severity: normal Priority: P2 Component: shlwapi Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com
Created attachment 48695 --> https://bugs.winehq.org/attachment.cgi?id=48695 output
If I compile wine with 4.9.0 and run it under valgrind, I noticed that shlwapi/path crashes pretty spectacularly:
*** stack smashing detected ***: shlwapi_test.exe.so terminated ======= Backtrace: ========= /lib32/libc.so.6(+0x6e96d)[0x42a296d] /lib32/libc.so.6(__fortify_fail+0x45)[0x43347d5] /lib32/libc.so.6(+0x10078a)[0x433478a] /home/austin/wine-valgrind/dlls/shlwapi/shlwapi.dll.so(+0x50314)[0x5100314] /home/austin/wine-valgrind/dlls/shlwapi/shlwapi.dll.so(PathCombineW+0x2e1)[0x50dfa84] /home/austin/wine-valgrind/dlls/shlwapi/shlwapi.dll.so(PathCombineA+0x18f)[0x50df743]
I'll attach the full output
https://bugs.winehq.org/show_bug.cgi?id=36651
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #48695|output |backtrace description| |
https://bugs.winehq.org/show_bug.cgi?id=36651
--- Comment #1 from Austin English austinenglish@gmail.com --- Created attachment 48696 --> https://bugs.winehq.org/attachment.cgi?id=48696 libc output
https://bugs.winehq.org/show_bug.cgi?id=36651
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |36573
https://bugs.winehq.org/show_bug.cgi?id=36651
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |valgrind
https://bugs.winehq.org/show_bug.cgi?id=36651 Bug 36651 depends on bug 36573, which changed state.
Bug 36573 Summary: valgrind shows uninitialized memory use in shlwapi/tests/path.c https://bugs.winehq.org/show_bug.cgi?id=36573
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
https://bugs.winehq.org/show_bug.cgi?id=36651
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |f26874c523e56c59fd23f002e0d | |7cae9c4ab840c Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #2 from Austin English austinenglish@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commitdiff/f26874c523e56c59fd23f002e0..., thanks Christoph!
https://bugs.winehq.org/show_bug.cgi?id=36651
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.22.