Author: cwittich
Date: Thu Sep 3 07:15:52 2015
New Revision: 68925
URL:
http://svn.reactos.org/svn/reactos?rev=68925&view=rev
Log:
[NTOS:SE] fix uninitialized variable usage CID 1322236
Modified:
trunk/reactos/ntoskrnl/se/token.c
Modified: trunk/reactos/ntoskrnl/se/token.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/se/token.c?rev=68…
==============================================================================
--- trunk/reactos/ntoskrnl/se/token.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/se/token.c [iso-8859-1] Thu Sep 3 07:15:52 2015
@@ -1080,6 +1080,12 @@
PSECURITY_IMPERSONATION_LEVEL SeImpersonationLvl;
PAGED_CODE();
+ if (TokenInformationClass >= MaxTokenInfoClass)
+ {
+ DPRINT1("SeQueryInformationToken(%d) invalid information class\n",
TokenInformationClass);
+ return STATUS_INVALID_INFO_CLASS;
+ }
+
switch (TokenInformationClass)
{
case TokenImpersonationLevel:
@@ -1106,6 +1112,7 @@
default:
UNIMPLEMENTED;
+ Status = STATUS_NOT_IMPLEMENTED;
break;
}