[Bug 53241] New: wtsapi32:wtsapi - test_WTSEnumerateProcessesW() crashes if a process exits during the test?

WineHQ Bugzilla wine-bugs at winehq.org
Wed Jun 22 04:50:05 CDT 2022


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

            Bug ID: 53241
           Summary: wtsapi32:wtsapi - test_WTSEnumerateProcessesW()
                    crashes if a process exits during the test?
           Product: Wine
           Version: unspecified
          Hardware: x86-64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: wtsapi32
          Assignee: wine-bugs at winehq.org
          Reporter: fgouget at codeweavers.com

wtsapi32:wtsapi - test_WTSEnumerateProcessesW() crashes if a process exits
during the test?
Here is the failure:

wtsapi.c:78: Test failed: failed to find pid 0x20e4
wtsapi.c:82: this is the last test seen before the exception
0618:wtsapi: unhandled exception c0000005 at 0000000000401848

https://test.winehq.org/data/patterns.html#wtsapi32:wtsapi

The crash happens when check_wts_process_info() dereferences the NULL pointer
returned by find_nt_process_info().

So presumably the test must check that some API does return information about
at least some processes but it seems allowances should be made for processes
exiting during the test.

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