https://bugs.winehq.org/show_bug.cgi?id=46340
Bug ID: 46340 Summary: comctl32//tests/edit.c shows uninitialized memory use Product: Wine Version: 4.0-rc3 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase, valgrind Severity: normal Priority: P2 Component: comctl32 Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com CC: bunglehead@gmail.com Distribution: Gentoo
../../../tools/runtest -q -P wine -T ../../.. -M comctl32.dll -p comctl32_test.exe.so edit && touch edit.ok ==28392== Syscall param writev(vector[...]) points to uninitialised byte(s) ==28392== at 0x43567D3: writev (writev.c:26) ==28392== by 0x7BC75457: send_request (server.c:228) ==28392== by 0x7BC76158: server_call_unlocked (server.c:288) ==28392== by 0x7BC761AD: wine_server_call (server.c:321) ==28392== by 0x4F60D1B: SetClipboardData (clipboard.c:904) ==28392== by 0x4A9C057: test_paste (edit.c:2919) ==28392== by 0x4A9DCBF: func_edit (edit.c:3214) ==28392== by 0x4B2BBBD: run_test (test.h:617) ==28392== by 0x4B2C5FB: main (test.h:701) ==28392== Address 0x4940bce is 30 bytes inside a recently re-allocated block of size 263 alloc'd ==28392== at 0x7BC483AD: notify_alloc (heap.c:260) ==28392== by 0x7BC4B8D1: RtlAllocateHeap (heap.c:1726) ==28392== by 0x7B4433A0: HeapAlloc (heap.c:271) ==28392== by 0x7B443603: GlobalAlloc (heap.c:389) ==28392== by 0x4A9BF57: test_paste (edit.c:2908) ==28392== by 0x4A9DCBF: func_edit (edit.c:3214) ==28392== by 0x4B2BBBD: run_test (test.h:617) ==28392== by 0x4B2C5FB: main (test.h:701) ==28392== Uninitialised value was created by a client request ==28392== at 0x7BC4831C: mark_block_uninitialized (heap.c:214) ==28392== by 0x7BC4A643: initialize_block (heap.c:245) ==28392== by 0x7BC4B8E7: RtlAllocateHeap (heap.c:1727) ==28392== by 0x7B4433A0: HeapAlloc (heap.c:271) ==28392== by 0x7B443603: GlobalAlloc (heap.c:389) ==28392== by 0x4A9BF57: test_paste (edit.c:2908) ==28392== by 0x4A9DCBF: func_edit (edit.c:3214) ==28392== by 0x4B2BBBD: run_test (test.h:617) ==28392== by 0x4B2C5FB: main (test.h:701) ==28392==
https://bugs.winehq.org/show_bug.cgi?id=46340
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|comctl32//tests/edit.c |comctl32/tests/edit.c shows |shows uninitialized memory |uninitialized memory use |use |
--- Comment #1 from Austin English austinenglish@gmail.com --- Also shows up in ole32/tests/clipboard.c:
../../../tools/runtest -q -P wine -T ../../.. -M ole32.dll -p ole32_test.exe.so clipboard && touch clipboard.ok ==17967== Syscall param writev(vector[...]) points to uninitialised byte(s) ==17967== at 0x4356813: writev (writev.c:26) ==17967== by 0x7BC75457: send_request (server.c:228) ==17967== by 0x7BC76158: server_call_unlocked (server.c:288) ==17967== by 0x7BC761AD: wine_server_call (server.c:321) ==17967== by 0x5221D1B: SetClipboardData (clipboard.c:904) ==17967== by 0x4E5CC9F: set_clipboard_formats (clipboard.c:1904) ==17967== by 0x4E5CDB2: set_src_dataobject (clipboard.c:2012) ==17967== by 0x4E5E60A: OleSetClipboard (clipboard.c:2203) ==17967== by 0x4A80379: test_set_clipboard (clipboard.c:944) ==17967== by 0x4A83A62: func_clipboard (clipboard.c:1872) ==17967== by 0x4AD412F: run_test (test.h:617) ==17967== by 0x4AD4B6D: main (test.h:701) ==17967== Address 0x495a03a is 34 bytes inside a block of size 128 alloc'd ==17967== at 0x7BC483AD: notify_alloc (heap.c:260) ==17967== by 0x7BC4B8D1: RtlAllocateHeap (heap.c:1726) ==17967== by 0x7B443394: HeapAlloc (heap.c:271) ==17967== by 0x7B4435F7: GlobalAlloc (heap.c:389) ==17967== by 0x4E5CAB8: set_clipboard_formats (clipboard.c:1856) ==17967== by 0x4E5CDB2: set_src_dataobject (clipboard.c:2012) ==17967== by 0x4E5E60A: OleSetClipboard (clipboard.c:2203) ==17967== by 0x4A80379: test_set_clipboard (clipboard.c:944) ==17967== by 0x4A83A62: func_clipboard (clipboard.c:1872) ==17967== by 0x4AD412F: run_test (test.h:617) ==17967== by 0x4AD4B6D: main (test.h:701) ==17967== Uninitialised value was created by a client request ==17967== at 0x7BC4831C: mark_block_uninitialized (heap.c:214) ==17967== by 0x7BC4A643: initialize_block (heap.c:245) ==17967== by 0x7BC4B8E7: RtlAllocateHeap (heap.c:1727) ==17967== by 0x4A7D3D4: DataObjectImpl_CreateFromHGlobal (clipboard.c:428) ==17967== by 0x4A7D472: DataObjectImpl_CreateText (clipboard.c:440) ==17967== by 0x4A801E1: test_set_clipboard (clipboard.c:920) ==17967== by 0x4A83A62: func_clipboard (clipboard.c:1872) ==17967== by 0x4AD412F: run_test (test.h:617) ==17967== by 0x4AD4B6D: main (test.h:701) ==17967==