[NTOSKRNL]

Do not call RtlCopyMemory (i.e. memcpy/memmove) with NULL pointer, which 
gives undefined behavior.

svn path=/trunk/; revision=61045
This commit is contained in:
Dmitry Gorbachev
2013-11-18 22:00:12 +00:00
parent 24536fac9a
commit d0b3091bb4
+1 -1
View File
@@ -361,7 +361,7 @@ ExpExpandResourceOwnerTable(IN PERESOURCE Resource,
else
{
/* Copy the table */
RtlCopyMemory(Table, Owner, OldSize * sizeof(OWNER_ENTRY));
if (Owner) RtlCopyMemory(Table, Owner, OldSize * sizeof(OWNER_ENTRY));
/* Acquire dispatcher lock to prevent thread boosting */
OldIrql = KiAcquireDispatcherLock();