projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97d46bb
)
[NTFS]
author
Pierre Schweitzer
<pierre@reactos.org>
Wed, 13 Apr 2016 20:06:56 +0000
(20:06 +0000)
committer
Pierre Schweitzer
<pierre@reactos.org>
Wed, 13 Apr 2016 20:06:56 +0000
(20:06 +0000)
Don't perform an overestimated allocation in NtfsReadFile()
Patch by Trevor Thompson
CORE-10998
svn path=/trunk/; revision=71156
reactos/drivers/filesystems/ntfs/rw.c
patch
|
blob
|
history
diff --git
a/reactos/drivers/filesystems/ntfs/rw.c
b/reactos/drivers/filesystems/ntfs/rw.c
index
e74d5a6
..
be5ec28
100644
(file)
--- a/
reactos/drivers/filesystems/ntfs/rw.c
+++ b/
reactos/drivers/filesystems/ntfs/rw.c
@@
-150,7
+150,7
@@
NtfsReadFile(PDEVICE_EXTENSION DeviceExt,
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");