microsoft / go-winio

Win32 IO-related utilities for Go
MIT License
939 stars 181 forks source link

Bug: incorrectly calculating length of security descriptor in SddlToSecurityDescriptor #298

Closed dblohm7 closed 11 months ago

dblohm7 commented 11 months ago

The landing of this PR broke SddlToSecurityDescriptor.

This line should not be using unsafe.Sizeof(windows.SECURITY_DESCRIPTOR{}) to determine the length; it should use sd.Length().