dahall / Vanara

A set of .NET libraries for Windows implementing PInvoke calls to many native Windows APIs with supporting wrappers.
MIT License
1.75k stars 190 forks source link

fix: advapi32 IsValidAcl recursion #463

Closed rul3rst4 closed 2 months ago

rul3rst4 commented 2 months ago

IsValidAcl is called from multiple places as a helper method when dealing with PACL structs, but it currently has a recursion problem, leading to stack overflow.

The fix is to make the call to IsValidAcl win32 native method explicit.