Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sd.go: fix calculation of security descriptor length in SddlToSecurit…
…yDescriptor (#299) 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 #298 Signed-off-by: Aaron Klotz <[email protected]>
- Loading branch information