Author: jimtabor Date: Mon Mar 31 19:31:56 2008 New Revision: 32800
URL: http://svn.reactos.org/svn/reactos?rev=32800&view=rev Log: SeSetSecurityDescriptorInfo/Ex check the security object pointer for null. http://msdn2.microsoft.com/en-us/library/ms800810.aspx
Modified: trunk/reactos/ntoskrnl/se/sd.c
Modified: trunk/reactos/ntoskrnl/se/sd.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/se/sd.c?rev=32800&... ============================================================================== --- trunk/reactos/ntoskrnl/se/sd.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/se/sd.c [iso-8859-1] Mon Mar 31 19:31:56 2008 @@ -906,9 +906,12 @@ ULONG Control = 0; ULONG_PTR Current; SECURITY_INFORMATION SecurityInformation; - - + ObjectSd = *ObjectsSecurityDescriptor; + + if (!ObjectSd) + return STATUS_NO_SECURITY_ON_OBJECT; // The object does not have a security descriptor. + SecurityInformation = *_SecurityInformation;
/* Get owner and owner size */ @@ -1083,6 +1086,11 @@ IN PGENERIC_MAPPING GenericMapping ) { + PISECURITY_DESCRIPTOR ObjectSd = *ObjectsSecurityDescriptor; + + if (!ObjectSd) + return STATUS_NO_SECURITY_ON_OBJECT; // The object does not have a security descriptor. + UNIMPLEMENTED; return STATUS_NOT_IMPLEMENTED; }