Menu

#764 XtInfoPlugin IsAdministrator fails

closed-rejected
Plugin (102)
5
2008-03-27
2008-03-27
No

There is a broblem with BOOL CxtInfoPlugin::IsAdministrator() function. Function assumes that token information can fit in 1024 bytes. In out domain this requires 1924 bytes. This causes GetTokenInformation call to fail and FALSE returned. Even if I have admin privileges.

Lines causing broblems:

UCHAR InfoBuffer[1024] = {0};
...
if (!GetTokenInformation( hAccessToken,TokenGroups, InfoBuffer, 1024, &dwInfoBufferSize))
return FALSE;

Buffer should be bigger or this should be handled some other way?

Discussion

  • Amir Szekely

    Amir Szekely - 2008-03-27
    • assigned_to: nobody --> kichik
    • status: open --> closed-rejected
     
  • Amir Szekely

    Amir Szekely - 2008-03-27

    Logged In: YES
    user_id=584402
    Originator: NO

    Buffer should probably be dynamically allocated in that case. But that plug-in is not an official plug-in. Wiki plug-ins are not supported as part of the NSIS package. You can submit a bug report to the plug-ins author or even upload your own fixed version.

     

Log in to post a comment.

MongoDB Logo MongoDB