[Bug 18758] New: LsaGetLogonSessionData unconditionally returns STATUS_SUCCESS

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Jun 3 05:31:49 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=18758

           Summary: LsaGetLogonSessionData unconditionally returns
                    STATUS_SUCCESS
           Product: Wine
           Version: 1.1.22
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: secur32
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: winesku at googlemail.com
                CC: kai.blin at gmail.com


LsaGetLogonSessionData unconditionally returns STATUS_SUCCESS. Applications
that use LsaGetLogonSessionData normally rely on a different behaviour: If
LsaGetLogonSessionData returns STATUS_SUCCESS, it allocates a buffer for the
caller. Now if a client app relies on a buffer being allocated and reads from
this buffer, it will surely crash. Therefore, LsaGetLogonSessionData should
return an error code, such as STATUS_NOT_IMPLEMENTED, as long as it is only a
stub, so client apps that do proper error handling do not get tempted to touch
the buffer that the current implementation in WINE will not allocate for them.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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