Author: dgorbachev Date: Sat May 12 03:17:44 2007 New Revision: 26709
URL: http://svn.reactos.org/svn/reactos?rev=26709&view=rev Log: Do not write beyond the buffer.
Modified: trunk/reactos/dll/win32/aclui/sidcache.c
Modified: trunk/reactos/dll/win32/aclui/sidcache.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/aclui/sidcache.c?... ============================================================================== --- trunk/reactos/dll/win32/aclui/sidcache.c (original) +++ trunk/reactos/dll/win32/aclui/sidcache.c Sat May 12 03:17:44 2007 @@ -588,7 +588,8 @@ { /* zero the static part of the structure */ ZeroMemory(scm, - sizeof(SIDCACHEMGR)); + FIELD_OFFSET(SIDCACHEMGR, + SystemName));
scm->RefCount = 1; scm->Heap = Heap;