https://bugs.winehq.org/show_bug.cgi?id=46345
Bug ID: 46345 Summary: mstask/tests/task.c shows uninitialized memory use in task_set_trigger() Product: Wine Version: 4.0-rc3 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase, valgrind Severity: normal Priority: P2 Component: mstask Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com Distribution: Gentoo
../../../tools/runtest -q -P wine -T ../../.. -M mstask.dll -p mstask_test.exe.so task && touch task.ok ==19487== Syscall param write(buf) points to uninitialised byte(s) ==19487== at 0x424EC7F: write (write.c:27) ==19487== by 0x7BC443F7: NtWriteFile (file.c:1305) ==19487== by 0x7B43CC9A: WriteFile (file.c:571) ==19487== by 0x5ADBC76: write_triggers (task.c:1587) ==19487== by 0x5ADE779: MSTASK_IPersistFile_Save (task.c:1760) ==19487== by 0x42282EA: IPersistFile_Save (objidl.h:4652) ==19487== by 0x42282EA: save_job (???:0) ==19487== by 0x422A3E2: test_Run (task.c:606) ==19487== by 0x422ABBE: func_task (task.c:793) ==19487== by 0x4230331: run_test (test.h:617) ==19487== by 0x4230D6F: main (test.h:701) ==19487== Address 0x4954690 is 40 bytes inside a recently re-allocated block of size 48 alloc'd ==19487== at 0x7BC483AD: notify_alloc (heap.c:260) ==19487== by 0x7BC4B8D1: RtlAllocateHeap (heap.c:1726) ==19487== by 0x5ADDDCD: heap_alloc (heap.h:29) ==19487== by 0x5ADEA7D: MSTASK_ITask_CreateTrigger (task.c:327) ==19487== by 0x5ADBBFC: ITask_CreateTrigger (mstask.h:1210) ==19487== by 0x5ADBBFC: write_triggers (???:0) ==19487== by 0x5ADE779: MSTASK_IPersistFile_Save (task.c:1760) ==19487== by 0x42282EA: IPersistFile_Save (objidl.h:4652) ==19487== by 0x42282EA: save_job (???:0) ==19487== by 0x422A1E2: test_Run (task.c:571) ==19487== by 0x422ABBE: func_task (task.c:793) ==19487== by 0x4230331: run_test (test.h:617) ==19487== by 0x4230D6F: main (test.h:701) ==19487== Uninitialised value was created by a stack allocation ==19487== at 0x5ADEC03: task_set_trigger (task.c:153) ==19487==