Author: cwittich
Date: Fri May 9 05:07:51 2014
New Revision: 63204
URL:
http://svn.reactos.org/svn/reactos?rev=63204&view=rev
Log:
[ntdll]
fix parameter check in RtlFindActivationContextSectionString
Modified:
trunk/reactos/lib/rtl/actctx.c
Modified: trunk/reactos/lib/rtl/actctx.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/actctx.c?rev=63204…
==============================================================================
--- trunk/reactos/lib/rtl/actctx.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/actctx.c [iso-8859-1] Fri May 9 05:07:51 2014
@@ -5130,7 +5130,7 @@
const UNICODE_STRING *section_name,
PACTCTX_SECTION_KEYED_DATA data )
{
/* Check general parameter combinations */
- if (!section_name ||
+ if (!section_name || !section_name->Buffer ||
(flags & ~FIND_ACTCTX_VALID_MASK) ||
((flags & FIND_ACTCTX_VALID_MASK) && !data) ||
(data && data->cbSize < offsetof(ACTCTX_SECTION_KEYED_DATA,
ulAssemblyRosterIndex)))