https://bugs.winehq.org/show_bug.cgi?id=38676
Bug ID: 38676 Summary: valgrind shows an invalid read in dlls/kernel32/tests/file.c:test_CreateFileA() Product: Wine Version: 1.7.44 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase, valgrind Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com Distribution: Fedora
../../../tools/runtest -q -P wine -T ../../.. -M kernel32.dll -p kernel32_test.exe.so file && touch file.ok ==14521== Invalid read of size 1 ==14521== at 0x4F7A2A63: getmntent_r (in /usr/lib/libc-2.21.so) ==14521== by 0x4F7A2832: getmntent (in /usr/lib/libc-2.21.so) ==14521== by 0x7BC3B580: parse_mount_entries (directory.c:573) ==14521== by 0x7BC3B6E8: get_default_drive_device (directory.c:706) ==14521== by 0x7BC3EE67: get_dos_device (directory.c:2760) ==14521== by 0x7BC40064: wine_nt_to_unix_file_name (directory.c:3164) ==14521== by 0x7BC3FB9C: nt_to_unix_file_name_attr (directory.c:3061) ==14521== by 0x7BC4310C: FILE_CreateFile (file.c:177) ==14521== by 0x7BC4357B: NtCreateFile (file.c:323) ==14521== by 0x7B83E3F3: CreateFileW (file.c:1499) ==14521== by 0x7B83E63F: CreateFileA (file.c:1555) ==14521== by 0x47E0275: test_CreateFileA (file.c:1295) ==14521== by 0x47F1B1E: func_file (file.c:4575) ==14521== by 0x4893BD4: run_test (test.h:584) ==14521== by 0x489401C: main (test.h:666) ==14521== Address 0x5563eb7 is 1 bytes before a block of size 4,096 alloc'd ==14521== at 0x400719E: malloc (vg_replace_malloc.c:299) ==14521== by 0x4F7A27D8: allocate (in /usr/lib/libc-2.21.so) ==14521== by 0x4F89542B: __pthread_once_slow (in /usr/lib/libpthread-2.21.so) ==14521== by 0x4F7A2862: getmntent (in /usr/lib/libc-2.21.so) ==14521== by 0x7BC3B580: parse_mount_entries (directory.c:573) ==14521== by 0x7BC3B68B: get_default_drive_device (directory.c:700) ==14521== by 0x7BC3EE67: get_dos_device (directory.c:2760) ==14521== by 0x7BC40064: wine_nt_to_unix_file_name (directory.c:3164) ==14521== by 0x7BC3FB9C: nt_to_unix_file_name_attr (directory.c:3061) ==14521== by 0x7BC4310C: FILE_CreateFile (file.c:177) ==14521== by 0x7BC4357B: NtCreateFile (file.c:323) ==14521== by 0x7B83E3F3: CreateFileW (file.c:1499) ==14521== by 0x7B83E63F: CreateFileA (file.c:1555) ==14521== by 0x47E0275: test_CreateFileA (file.c:1295) ==14521== by 0x47F1B1E: func_file (file.c:4575) ==14521== by 0x4893BD4: run_test (test.h:584) ==14521== by 0x489401C: main (test.h:666)