[ros-diffs] [pschweitzer] 31606: Zero memory before use

pschweitzer at svn.reactos.org pschweitzer at svn.reactos.org
Sat Jan 5 14:15:55 CET 2008


Author: pschweitzer
Date: Sat Jan  5 16:15:54 2008
New Revision: 31606

URL: http://svn.reactos.org/svn/reactos?rev=31606&view=rev
Log:
Zero memory before use

Modified:
    trunk/reactos/drivers/filesystems/ntfs/volinfo.c

Modified: trunk/reactos/drivers/filesystems/ntfs/volinfo.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/volinfo.c?rev=31606&r1=31605&r2=31606&view=diff
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/volinfo.c (original)
+++ trunk/reactos/drivers/filesystems/ntfs/volinfo.c Sat Jan  5 16:15:54 2008
@@ -181,6 +181,7 @@
   FsInformationClass = Stack->Parameters.QueryVolume.FsInformationClass;
   BufferLength = Stack->Parameters.QueryVolume.Length;
   SystemBuffer = Irp->AssociatedIrp.SystemBuffer;
+  RtlZeroMemory(SystemBuffer, BufferLength);
 
   DPRINT("FsInformationClass %d\n", FsInformationClass);
   DPRINT("SystemBuffer %p\n", SystemBuffer);




More information about the Ros-diffs mailing list