Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sd.go: fix calculation of security descriptor length in SddlToSecurit… #299

Merged
merged 1 commit into from
Aug 10, 2023

Commits on Aug 9, 2023

  1. sd.go: fix calculation of security descriptor length in SddlToSecurit…

    …yDescriptor
    
    unsafe.Sizeof(windows.SECURITY_DESCRIPTOR{}) is the minimum length of the SD,
    not the actual length. Use the actual length for computing the length of the
    slice.
    
    This path also removes getSecurityDescriptorLength, which is no longer used.
    
    Fixes microsoft#298
    
    Signed-off-by: Aaron Klotz <[email protected]>
    dblohm7 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    3534147 View commit details
    Browse the repository at this point in the history