mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user