[ros-diffs] [dgorbachev] 26709: Do not write beyond the buffer.

dgorbachev at svn.reactos.org dgorbachev at svn.reactos.org
Sat May 12 01:17:44 CEST 2007


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?rev=26709&r1=26708&r2=26709&view=diff
==============================================================================
--- 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;




More information about the Ros-diffs mailing list