Author: ion
Date: Mon Jul 25 06:23:50 2011
New Revision: 52860
URL:
http://svn.reactos.org/svn/reactos?rev=52860&view=rev
Log:
[KERNEL32]: Fix potential buffer overflow.
Modified:
trunk/reactos/dll/win32/kernel32/client/dllmain.c
Modified: trunk/reactos/dll/win32/kernel32/client/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/dllmain.c [iso-8859-1] Mon Jul 25 06:23:50
2011
@@ -322,7 +322,7 @@
ASSERT(FALSE);
}
- RtlInitEmptyUnicodeString(&BaseSrvCSDString, Buffer, sizeof(Buffer));
+ RtlInitEmptyUnicodeString(&BaseSrvCSDString, Buffer,
sizeof(BaseStaticServerData->CSDVersion));
Status = RtlQueryRegistryValues(RTL_REGISTRY_WINDOWS_NT,
L"",