https://bugs.winehq.org/show_bug.cgi?id=36170
Bug ID: 36170 Summary: valgrind shows an unitialized variable in programs/cmd/tests/batch.c (WCMD_output_asis_len) Product: Wine Version: 1.7.17 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com
==4054== Use of uninitialised value of size 4 ==4054== at 0x40416D4: wcstombs_sbcs_slow (wctomb.c:246) ==4054== by 0x4041E49: wine_cp_wcstombs (wctomb.c:452) ==4054== by 0x7B850EDC: WideCharToMultiByte (locale.c:2142) ==4054== by 0x4EF85DE: WCMD_output_asis_len (wcmdmain.c:113) ==4054== by 0x4EF88A5: WCMD_output_stderr (wcmdmain.c:173) ==4054== by 0x4EF51AA: WCMD_assoc (builtins.c:4758) ==4054== by 0x4EFC2F7: WCMD_execute (wcmdmain.c:1594) ==4054== by 0x4EFDE52: WCMD_process_commands (wcmdmain.c:2294) ==4054== by 0x4EE6FD0: WCMD_batch (batch.c:95) ==4054== by 0x4EFB0A0: WCMD_run_program (wcmdmain.c:1187) ==4054== by 0x4EFC383: WCMD_execute (wcmdmain.c:1618) ==4054== by 0x4EFDE52: WCMD_process_commands (wcmdmain.c:2294) ==4054== by 0x4EFECE7: wmain (wcmdmain.c:2590) ==4054== by 0x4EFF24A: __wine_spec_exe_wentry (exe_wentry.c:36) ==4054== by 0x7B8641DB: ??? (process.c:1045) ==4054== by 0x7B864328: start_process (process.c:1097) ==4054== by 0x7BC87017: ??? (signal_i386.c:2571) ==4054== by 0x7BC87060: call_thread_func (signal_i386.c:2630) ==4054== by 0x7BC86FF5: ??? (signal_i386.c:2571) ==4054== by 0x7BC5A14C: start_process (loader.c:2840) ==4054== Uninitialised value was created by a stack allocation ==4054== at 0x4EF4BBA: WCMD_assoc (builtins.c:4619) ==4054==
https://bugs.winehq.org/show_bug.cgi?id=36170
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |valgrind
https://bugs.winehq.org/show_bug.cgi?id=36170
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |us@edmeades.me.uk Resolution|--- |DUPLICATE
--- Comment #1 from Jason Edmeades us@edmeades.me.uk --- Dup of 38849 - Have patch to be send in soon. Identifier keyValue is used in an error condition without being defined (e.g. ftype jason=)
WCMD_assoc (builtins.c:4758) (It's 4759 in the other defect but it moved due to a commit)
*** This bug has been marked as a duplicate of bug 38849 ***
https://bugs.winehq.org/show_bug.cgi?id=36170
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_output_asis_len) |(WCMD_output_asis_len)
https://bugs.winehq.org/show_bug.cgi?id=36170
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de Status|RESOLVED |CLOSED
--- Comment #2 from André H. nerv@dawncrow.de --- closing dup