Author: akhaldi
Date: Mon Oct 7 11:50:09 2013
New Revision: 60571
URL:
http://svn.reactos.org/svn/reactos?rev=60571&view=rev
Log:
[NTOSKRNL]
* Fix an out-of-bounds access. CID 731663.
CORE-6681
Modified:
trunk/reactos/ntoskrnl/ob/obname.c
Modified: trunk/reactos/ntoskrnl/ob/obname.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/obname.c?rev=6…
==============================================================================
--- trunk/reactos/ntoskrnl/ob/obname.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ob/obname.c [iso-8859-1] Mon Oct 7 11:50:09 2013
@@ -1198,9 +1198,7 @@
ObjectName = (PWCH)((ULONG_PTR)ObjectName -
sizeof(L"...") +
sizeof(UNICODE_NULL));
- RtlCopyMemory(ObjectName,
- L"...",
- sizeof(L"...") + sizeof(UNICODE_NULL));
+ RtlCopyMemory(ObjectName, L"...",
sizeof(L"..."));
break;
}
}