Skip to content
Snippets Groups Projects
Commit c595083f authored by Juergen Schmied's avatar Juergen Schmied Committed by Alexandre Julliard
Browse files

More parameter checking in RltCopySid.

parent 4a84dc23
No related branches found
No related tags found
No related merge requests found
......@@ -254,7 +254,8 @@ LPBYTE WINAPI RtlSubAuthorityCountSid(LPSID lpsid)
* RtlCopySid [NTDLL.302]
*/
DWORD WINAPI RtlCopySid(DWORD len,LPSID to,LPSID from)
{
{ if (!from)
return 0;
if (len<(from->SubAuthorityCount*4+8))
return STATUS_BUFFER_TOO_SMALL;
memmove(to,from,from->SubAuthorityCount*4+8);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment