https://bugs.winehq.org/show_bug.cgi?id=38849
Bug ID: 38849 Summary: valgrind shows an unitialized variable in programs/cmd/tests/batch.c:WCMD_assoc Product: Wine Version: 1.7.46 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase, valgrind Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com Distribution: ---
../../../tools/runtest -q -P wine -T ../../.. -M cmd.exe -p cmd.exe_test.exe.so batch && touch batch.ok ==13413== Conditional jump or move depends on uninitialised value(s) ==13413== at 0x7B841A61: strlenW (unicode.h:200) ==13413== by 0x7B841ED4: format_insert (format_msg.c:160) ==13413== by 0x7B842936: format_message (format_msg.c:391) ==13413== by 0x7B843087: FormatMessageW (format_msg.c:617) ==13413== by 0x4ADE451: WCMD_output_stderr (wcmdmain.c:166) ==13413== by 0x4ADB08E: WCMD_assoc (builtins.c:4759) ==13413== by 0x4AE18EB: WCMD_execute (wcmdmain.c:1592) ==13413== by 0x4AE30AB: WCMD_process_commands (wcmdmain.c:2292) ==13413== by 0x4ACDFD6: WCMD_batch (batch.c:95) ==13413== by 0x4AE08C1: WCMD_run_program (wcmdmain.c:1185) ==13413== by 0x4AE1979: WCMD_execute (wcmdmain.c:1616) ==13413== by 0x4AE30AB: WCMD_process_commands (wcmdmain.c:2292) ==13413== by 0x4AE3E90: wmain (wcmdmain.c:2588) ==13413== by 0x4AE431F: __wine_spec_exe_wentry (exe_wentry.c:36) ==13413== by 0x7B860807: ??? (process.c:1052) ==13413== by 0x7B860949: start_process (process.c:1104) ==13413== by 0x7BC81E27: ??? (signal_i386.c:2682) ==13413== by 0x7BC81E6E: call_thread_func (signal_i386.c:2741) ==13413== by 0x7BC81E05: ??? (signal_i386.c:2682) ==13413== by 0x7BC57806: start_process (loader.c:2868) ==13413== Uninitialised value was created by a stack allocation ==13413== at 0x4ADAB4F: WCMD_assoc (builtins.c:4620) ==13413==
==13413== Conditional jump or move depends on uninitialised value(s) ==13413== at 0x7B841AA6: strcpyW (unicode.h:207) ==13413== by 0x7B841F13: format_insert (format_msg.c:161) ==13413== by 0x7B842936: format_message (format_msg.c:391) ==13413== by 0x7B843087: FormatMessageW (format_msg.c:617) ==13413== by 0x4ADE451: WCMD_output_stderr (wcmdmain.c:166) ==13413== by 0x4ADB08E: WCMD_assoc (builtins.c:4759) ==13413== by 0x4AE18EB: WCMD_execute (wcmdmain.c:1592) ==13413== by 0x4AE30AB: WCMD_process_commands (wcmdmain.c:2292) ==13413== by 0x4ACDFD6: WCMD_batch (batch.c:95) ==13413== by 0x4AE08C1: WCMD_run_program (wcmdmain.c:1185) ==13413== by 0x4AE1979: WCMD_execute (wcmdmain.c:1616) ==13413== by 0x4AE30AB: WCMD_process_commands (wcmdmain.c:2292) ==13413== by 0x4AE3E90: wmain (wcmdmain.c:2588) ==13413== by 0x4AE431F: __wine_spec_exe_wentry (exe_wentry.c:36) ==13413== by 0x7B860807: ??? (process.c:1052) ==13413== by 0x7B860949: start_process (process.c:1104) ==13413== by 0x7BC81E27: ??? (signal_i386.c:2682) ==13413== by 0x7BC81E6E: call_thread_func (signal_i386.c:2741) ==13413== by 0x7BC81E05: ??? (signal_i386.c:2682) ==13413== by 0x7BC57806: start_process (loader.c:2868) ==13413== Uninitialised value was created by a stack allocation ==13413== at 0x4ADAB4F: WCMD_assoc (builtins.c:4620) ==13413==
==13413== Conditional jump or move depends on uninitialised value(s) ==13413== at 0x7B84296B: format_message (format_msg.c:392) ==13413== by 0x7B843087: FormatMessageW (format_msg.c:617) ==13413== by 0x4ADE451: WCMD_output_stderr (wcmdmain.c:166) ==13413== by 0x4ADB08E: WCMD_assoc (builtins.c:4759) ==13413== by 0x4AE18EB: WCMD_execute (wcmdmain.c:1592) ==13413== by 0x4AE30AB: WCMD_process_commands (wcmdmain.c:2292) ==13413== by 0x4ACDFD6: WCMD_batch (batch.c:95) ==13413== by 0x4AE08C1: WCMD_run_program (wcmdmain.c:1185) ==13413== by 0x4AE1979: WCMD_execute (wcmdmain.c:1616) ==13413== by 0x4AE30AB: WCMD_process_commands (wcmdmain.c:2292) ==13413== by 0x4AE3E90: wmain (wcmdmain.c:2588) ==13413== by 0x4AE431F: __wine_spec_exe_wentry (exe_wentry.c:36) ==13413== by 0x7B860807: ??? (process.c:1052) ==13413== by 0x7B860949: start_process (process.c:1104) ==13413== by 0x7BC81E27: ??? (signal_i386.c:2682) ==13413== by 0x7BC81E6E: call_thread_func (signal_i386.c:2741) ==13413== by 0x7BC81E05: ??? (signal_i386.c:2682) ==13413== by 0x7BC57806: start_process (loader.c:2868) ==13413== by 0x4018FB4: ??? (port.c:60) ==13413== Uninitialised value was created by a stack allocation ==13413== at 0x4ADAB4F: WCMD_assoc (builtins.c:4620) ==13413==
==13413== Conditional jump or move depends on uninitialised value(s) ==13413== at 0x7B841A61: strlenW (unicode.h:200) ==13413== by 0x7B8430A2: FormatMessageW (format_msg.c:621) ==13413== by 0x4ADE451: WCMD_output_stderr (wcmdmain.c:166) ==13413== by 0x4ADB08E: WCMD_assoc (builtins.c:4759) ==13413== by 0x4AE18EB: WCMD_execute (wcmdmain.c:1592) ==13413== by 0x4AE30AB: WCMD_process_commands (wcmdmain.c:2292) ==13413== by 0x4ACDFD6: WCMD_batch (batch.c:95) ==13413== by 0x4AE08C1: WCMD_run_program (wcmdmain.c:1185) ==13413== by 0x4AE1979: WCMD_execute (wcmdmain.c:1616) ==13413== by 0x4AE30AB: WCMD_process_commands (wcmdmain.c:2292) ==13413== by 0x4AE3E90: wmain (wcmdmain.c:2588) ==13413== by 0x4AE431F: __wine_spec_exe_wentry (exe_wentry.c:36) ==13413== by 0x7B860807: ??? (process.c:1052) ==13413== by 0x7B860949: start_process (process.c:1104) ==13413== by 0x7BC81E27: ??? (signal_i386.c:2682) ==13413== by 0x7BC81E6E: call_thread_func (signal_i386.c:2741) ==13413== by 0x7BC81E05: ??? (signal_i386.c:2682) ==13413== by 0x7BC57806: start_process (loader.c:2868) ==13413== by 0x4018FB4: ??? (port.c:60) ==13413== Uninitialised value was created by a stack allocation ==13413== at 0x4ADAB4F: WCMD_assoc (builtins.c:4620) ==13413==
==13413== Conditional jump or move depends on uninitialised value(s) ==13413== at 0x7B841AA6: strcpyW (unicode.h:207) ==13413== by 0x7B843144: FormatMessageW (format_msg.c:633) ==13413== by 0x4ADE451: WCMD_output_stderr (wcmdmain.c:166) ==13413== by 0x4ADB08E: WCMD_assoc (builtins.c:4759) ==13413== by 0x4AE18EB: WCMD_execute (wcmdmain.c:1592) ==13413== by 0x4AE30AB: WCMD_process_commands (wcmdmain.c:2292) ==13413== by 0x4ACDFD6: WCMD_batch (batch.c:95) ==13413== by 0x4AE08C1: WCMD_run_program (wcmdmain.c:1185) ==13413== by 0x4AE1979: WCMD_execute (wcmdmain.c:1616) ==13413== by 0x4AE30AB: WCMD_process_commands (wcmdmain.c:2292) ==13413== by 0x4AE3E90: wmain (wcmdmain.c:2588) ==13413== by 0x4AE431F: __wine_spec_exe_wentry (exe_wentry.c:36) ==13413== by 0x7B860807: ??? (process.c:1052) ==13413== by 0x7B860949: start_process (process.c:1104) ==13413== by 0x7BC81E27: ??? (signal_i386.c:2682) ==13413== by 0x7BC81E6E: call_thread_func (signal_i386.c:2741) ==13413== by 0x7BC81E05: ??? (signal_i386.c:2682) ==13413== by 0x7BC57806: start_process (loader.c:2868) ==13413== by 0x4018FB4: ??? (port.c:60) ==13413== Uninitialised value was created by a stack allocation ==13413== at 0x4ADAB4F: WCMD_assoc (builtins.c:4620) ==13413==
https://bugs.winehq.org/show_bug.cgi?id=38849
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk Assignee|wine-bugs@winehq.org |us@edmeades.me.uk
https://bugs.winehq.org/show_bug.cgi?id=38849
--- Comment #1 from Jason Edmeades us@edmeades.me.uk --- *** Bug 36170 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=38849
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|valgrind shows an |valgrind shows an |unitialized variable in |uninitialized variable in |programs/cmd/tests/batch.c: |programs/cmd/tests/batch.c: |WCMD_assoc |WCMD_assoc
https://bugs.winehq.org/show_bug.cgi?id=38849
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Fixed by SHA1| |ab46a89c3b8649844a70ee30abf | |fbbd275128bc3
--- Comment #2 from Jason Edmeades us@edmeades.me.uk --- Committed
https://bugs.winehq.org/show_bug.cgi?id=38849
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.12.
https://bugs.winehq.org/show_bug.cgi?id=38849
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |3.0.x
https://bugs.winehq.org/show_bug.cgi?id=38849
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.0.x |---
--- Comment #4 from Michael Stefaniuc mstefani@winehq.org --- Removing the 3.0.x milestone from bugs included in 3.0.3.