[Bug 38728] New: valgrind shows uninitialized memory in dlls/user32/clipboard.c

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jun 9 04:26:17 CDT 2015


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

            Bug ID: 38728
           Summary: valgrind shows uninitialized memory in
                    dlls/user32/clipboard.c
           Product: Wine
           Version: 1.7.44
          Hardware: x86
                OS: Linux
            Status: NEW
          Keywords: download, source, testcase, valgrind
          Severity: normal
          Priority: P2
         Component: user32
          Assignee: wine-bugs at winehq.org
          Reporter: austinenglish at gmail.com
      Distribution: Fedora

../../../tools/runtest -q -P wine -T ../../.. -M user32.dll -p
user32_test.exe.so clipboard && touch clipboard.ok
clipboard.c:172: Test failed: SetClipboardData succeeded
clipboard.c:173: Test failed: wrong error 0
==4874== Thread 2:
==4874== Conditional jump or move depends on uninitialised value(s)
==4874==    at 0x7B84A38C: strlenW (unicode.h:200)
==4874==    by 0x7B84E1A2: WideCharToMultiByte (locale.c:2343)
==4874==    by 0x56A9169: intern_atoms (clipboard.c:371)
==4874==    by 0x56AF69C: X11DRV_SelectionRequest_TARGETS (clipboard.c:3256)
==4874==    by 0x56AFDAF: X11DRV_HandleSelectionRequest (clipboard.c:3453)
==4874==    by 0x56B0032: X11DRV_SelectionRequest (clipboard.c:3527)
==4874==    by 0x56B164F: call_event_handler (event.c:395)
==4874==    by 0x56B185A: process_events (event.c:462)
==4874==    by 0x56B1978: X11DRV_MsgWaitForMultipleObjectsEx (event.c:488)
==4874==    by 0x4ACEAB5: wait_message (winproc.c:1128)
==4874==    by 0x4A93D63: wait_objects (message.c:3068)
==4874==    by 0x4A961A3: MsgWaitForMultipleObjectsEx (message.c:4148)
==4874==    by 0x56AEB3A: selection_thread_proc (clipboard.c:2920)
==4874==    by 0x7BC81BB7: ??? (signal_i386.c:2682)
==4874==    by 0x7BC81BFE: call_thread_func (signal_i386.c:2741)
==4874==    by 0x7BC81B95: ??? (signal_i386.c:2682)
==4874==    by 0x7BC88D78: start_thread (thread.c:443)
==4874==    by 0x4F88F37F: start_thread (in /usr/lib/libpthread-2.21.so)
==4874==    by 0x4F7ABD4D: clone (in /usr/lib/libc-2.21.so)
==4874==  Uninitialised value was created by a stack allocation
==4874==    at 0x56A9064: intern_atoms (clipboard.c:349)
==4874==

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