Author: dgorbachev
Date: Sat May 12 03:15:53 2007
New Revision: 26708
URL:
http://svn.reactos.org/svn/reactos?rev=26708&view=rev
Log:
Do not write beyond the buffer.
Modified:
trunk/reactos/base/applications/regedit/security.c
Modified: trunk/reactos/base/applications/regedit/security.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/security.c (original)
+++ trunk/reactos/base/applications/regedit/security.c Sat May 12 03:15:53 2007
@@ -763,7 +763,7 @@
obj = (PCRegKeySecurity)HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY,
FIELD_OFFSET(CRegKeySecurity,
- szRegKey[_tcslen(lpRegKey)]));
+ szRegKey[_tcslen(lpRegKey)+1]));
if (obj != NULL)
{
obj->ref = 1;