[Bug 37159] New: valgrind shows a few uninitialized variables in riched20/tests/editor.c (test_EM_FINDWORDBREAK_A)

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Aug 21 18:55:36 CDT 2014


https://bugs.winehq.org/show_bug.cgi?id=37159

            Bug ID: 37159
           Summary: valgrind shows a few uninitialized variables in
                    riched20/tests/editor.c (test_EM_FINDWORDBREAK_A)
           Product: Wine
           Version: 1.7.24
          Hardware: x86
                OS: Linux
            Status: NEW
          Keywords: download, source, testcase, valgrind
          Severity: minor
          Priority: P2
         Component: richedit
          Assignee: wine-bugs at winehq.org
          Reporter: austinenglish at gmail.com

Followup to bug 26101. A few issues remain in editor.c:

==18311== Conditional jump or move depends on uninitialised value(s)
==18311==    at 0x532CBFB: strlenW (unicode.h:200)
==18311==    by 0x532E6F8: WINPROC_CallProcWtoA (winproc.c:721)
==18311==    by 0x532EE94: WINPROC_call_window (winproc.c:902)
==18311==    by 0x52F37EC: call_window_proc (message.c:2223)
==18311==    by 0x52F614E: send_message (message.c:3263)
==18311==    by 0x52F671B: SendMessageW (message.c:3457)
==18311==    by 0x4C8C2C1: test_EM_FINDWORDBREAK_A (editor.c:7385)
==18311==    by 0x4C8D1FE: func_editor (editor.c:7659)
==18311==    by 0x4C932D0: run_test (test.h:584)
==18311==    by 0x4C9369C: main (test.h:654)
==18311==  Uninitialised value was created by a stack allocation
==18311==    at 0x4C8C239: test_EM_FINDWORDBREAK_A (editor.c:7363)

==18311== Use of uninitialised value of size 4
==18311==    at 0x401F269: wcstombs_sbcs (wctomb.c:187)
==18311==    by 0x401FB2C: wine_cp_wcstombs (wctomb.c:456)
==18311==    by 0x7BC6FD50: RtlUnicodeToMultiByteN (rtlstr.c:876)
==18311==    by 0x532E753: WINPROC_CallProcWtoA (winproc.c:726)
==18311==    by 0x532EE94: WINPROC_call_window (winproc.c:902)
==18311==    by 0x52F37EC: call_window_proc (message.c:2223)
==18311==    by 0x52F614E: send_message (message.c:3263)
==18311==    by 0x52F671B: SendMessageW (message.c:3457)
==18311==    by 0x4C8C2C1: test_EM_FINDWORDBREAK_A (editor.c:7385)
==18311==    by 0x4C8D1FE: func_editor (editor.c:7659)
==18311==    by 0x4C932D0: run_test (test.h:584)
==18311==    by 0x4C9369C: main (test.h:654)
==18311==  Uninitialised value was created by a stack allocation
==18311==    at 0x4C8C239: test_EM_FINDWORDBREAK_A (editor.c:7363)

==18311== Use of uninitialised value of size 4
==18311==    at 0x401F287: wcstombs_sbcs (wctomb.c:187)
==18311==    by 0x401FB2C: wine_cp_wcstombs (wctomb.c:456)
==18311==    by 0x7BC6FD50: RtlUnicodeToMultiByteN (rtlstr.c:876)
==18311==    by 0x532E753: WINPROC_CallProcWtoA (winproc.c:726)
==18311==    by 0x532EE94: WINPROC_call_window (winproc.c:902)
==18311==    by 0x52F37EC: call_window_proc (message.c:2223)
==18311==    by 0x52F614E: send_message (message.c:3263)
==18311==    by 0x52F671B: SendMessageW (message.c:3457)
==18311==    by 0x4C8C2C1: test_EM_FINDWORDBREAK_A (editor.c:7385)
==18311==    by 0x4C8D1FE: func_editor (editor.c:7659)
==18311==    by 0x4C932D0: run_test (test.h:584)
==18311==    by 0x4C9369C: main (test.h:654)
==18311==  Uninitialised value was created by a stack allocation
==18311==    at 0x4C8C239: test_EM_FINDWORDBREAK_A (editor.c:7363)
==18311==

-- 
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.



More information about the wine-bugs mailing list