[Bug 43392] New: valgrind shows a couple invalid reads in programs/regedit /tests/regedit.c

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jul 18 17:36:24 CDT 2017


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

            Bug ID: 43392
           Summary: valgrind shows a couple invalid reads in
                    programs/regedit/tests/regedit.c
           Product: Wine
           Version: 2.12
          Hardware: x86
                OS: Linux
            Status: NEW
          Keywords: download, source, testcase, valgrind
          Severity: minor
          Priority: P2
         Component: programs
          Assignee: wine-bugs at winehq.org
          Reporter: austinenglish at gmail.com
      Distribution: Gentoo

==8309== Invalid read of size 2
==8309==    at 0x4A18346: REGPROC_unescape_string (regproc.c:427)
==8309==    by 0x4A18D3E: quoted_value_name_state (regproc.c:729)
==8309==    by 0x4A1AFA3: import_registry_file (regproc.c:1569)
==8309==    by 0x4A17322: PerformRegAction (regedit.c:145)
==8309==    by 0x4A17681: ProcessCmdLine (regedit.c:242)
==8309==    by 0x4A16B4C: wWinMain (main.c:142)
==8309==    by 0x4A1D51C: wmain (exe_wmain.c:51)
==8309==    by 0x4A1D3F5: __wine_spec_exe_wentry (exe_wentry.c:36)
==8309==    by 0x7B46BDB3: ??? (process.c:1065)
==8309==    by 0x7B46BF08: start_process (process.c:1116)
==8309==    by 0x7BC913B3: ??? (signal_i386.c:2700)
==8309==    by 0x7BC9143B: call_thread_func (signal_i386.c:2759)
==8309==    by 0x7BC91391: ??? (signal_i386.c:2700)
==8309==    by 0x7BC5FDE8: start_process (loader.c:3083)
==8309==    by 0x40413EC: ??? (port.c:78)
==8309==  Address 0x48735ce is 0 bytes after a recently re-allocated block of
size 14 alloc'd
==8309==    at 0x7BC51061: notify_alloc (heap.c:254)
==8309==    by 0x7BC5554F: RtlAllocateHeap (heap.c:1716)
==8309==    by 0x4A17A1E: GetWideString (regproc.c:65)
==8309==    by 0x4A19766: get_lineA (regproc.c:1005)
==8309==    by 0x4A18AEC: line_start_state (regproc.c:647)
==8309==    by 0x4A1AFA3: import_registry_file (regproc.c:1569)
==8309==    by 0x4A17322: PerformRegAction (regedit.c:145)
==8309==    by 0x4A17681: ProcessCmdLine (regedit.c:242)
==8309==    by 0x4A16B4C: wWinMain (main.c:142)
==8309==    by 0x4A1D51C: wmain (exe_wmain.c:51)
==8309==    by 0x4A1D3F5: __wine_spec_exe_wentry (exe_wentry.c:36)
==8309==    by 0x7B46BDB3: ??? (process.c:1065)
==8309==    by 0x7B46BF08: start_process (process.c:1116)
==8309==    by 0x7BC913B3: ??? (signal_i386.c:2700)
==8309==    by 0x7BC9143B: call_thread_func (signal_i386.c:2759)
==8309==    by 0x7BC91391: ??? (signal_i386.c:2700)
==8309==    by 0x7BC5FDE8: start_process (loader.c:3083)
==8309==    by 0x40413EC: ??? (port.c:78)
==8309== 

==8313== Invalid read of size 2
==8313==    at 0x4A18346: REGPROC_unescape_string (regproc.c:427)
==8313==    by 0x4A19097: string_data_state (regproc.c:823)
==8313==    by 0x4A1AFA3: import_registry_file (regproc.c:1569)
==8313==    by 0x4A17322: PerformRegAction (regedit.c:145)
==8313==    by 0x4A17681: ProcessCmdLine (regedit.c:242)
==8313==    by 0x4A16B4C: wWinMain (main.c:142)
==8313==    by 0x4A1D51C: wmain (exe_wmain.c:51)
==8313==    by 0x4A1D3F5: __wine_spec_exe_wentry (exe_wentry.c:36)
==8313==    by 0x7B46BDB3: ??? (process.c:1065)
==8313==    by 0x7B46BF08: start_process (process.c:1116)
==8313==    by 0x7BC913B3: ??? (signal_i386.c:2700)
==8313==    by 0x7BC9143B: call_thread_func (signal_i386.c:2759)
==8313==    by 0x7BC91391: ??? (signal_i386.c:2700)
==8313==    by 0x7BC5FDE8: start_process (loader.c:3083)
==8313==    by 0x40413EC: ??? (port.c:78)
==8313==  Address 0x48775f4 is 0 bytes after a recently re-allocated block of
size 36 alloc'd
==8313==    at 0x7BC51061: notify_alloc (heap.c:254)
==8313==    by 0x7BC5554F: RtlAllocateHeap (heap.c:1716)
==8313==    by 0x4A17A1E: GetWideString (regproc.c:65)
==8313==    by 0x4A19766: get_lineA (regproc.c:1005)
==8313==    by 0x4A18AEC: line_start_state (regproc.c:647)
==8313==    by 0x4A1AFA3: import_registry_file (regproc.c:1569)
==8313==    by 0x4A17322: PerformRegAction (regedit.c:145)
==8313==    by 0x4A17681: ProcessCmdLine (regedit.c:242)
==8313==    by 0x4A16B4C: wWinMain (main.c:142)
==8313==    by 0x4A1D51C: wmain (exe_wmain.c:51)
==8313==    by 0x4A1D3F5: __wine_spec_exe_wentry (exe_wentry.c:36)
==8313==    by 0x7B46BDB3: ??? (process.c:1065)
==8313==    by 0x7B46BF08: start_process (process.c:1116)
==8313==    by 0x7BC913B3: ??? (signal_i386.c:2700)
==8313==    by 0x7BC9143B: call_thread_func (signal_i386.c:2759)
==8313==    by 0x7BC91391: ??? (signal_i386.c:2700)
==8313==    by 0x7BC5FDE8: start_process (loader.c:3083)
==8313==    by 0x40413EC: ??? (port.c:78)
==8313==

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