Author: pschweitzer
Date: Wed Apr 13 20:06:56 2016
New Revision: 71156

URL: http://svn.reactos.org/svn/reactos?rev=71156&view=rev
Log:
[NTFS]
Don't perform an overestimated allocation in NtfsReadFile()

Patch by Trevor Thompson

CORE-10998

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

Modified: trunk/reactos/drivers/filesystems/ntfs/rw.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/rw.c?rev=71156&r1=71155&r2=71156&view=diff
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/rw.c [iso-8859-1] Wed Apr 13 
20:06:56 2016
@@ -150,7 +150,7 @@
             RealLength += DeviceExt->NtfsInfo.BytesPerSector;
 
 
-        ReadBuffer = ExAllocatePoolWithTag(NonPagedPool, RealLength + 
(DeviceExt->NtfsInfo.BytesPerSector * 2), TAG_NTFS);
+        ReadBuffer = ExAllocatePoolWithTag(NonPagedPool, RealLength, TAG_NTFS);
         if (ReadBuffer == NULL)
         {
             DPRINT1("Not enough memory!\n");


Reply via email to