projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
29193e1
)
[NTOS]
author
Timo Kreuzer
<timo.kreuzer@reactos.org>
Mon, 18 Jan 2010 16:43:58 +0000
(16:43 +0000)
committer
Timo Kreuzer
<timo.kreuzer@reactos.org>
Mon, 18 Jan 2010 16:43:58 +0000
(16:43 +0000)
Fix buffer overrun in ExFreePoolWithTag when dealing with a PoolType other than NonPagedPool and PagedPool. Spotted by Amine Khaldi.
svn path=/trunk/; revision=45134
reactos/ntoskrnl/mm/ARM3/expool.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/mm/ARM3/expool.c
b/reactos/ntoskrnl/mm/ARM3/expool.c
index
4c5f46b
..
c10d8c8
100644
(file)
--- a/
reactos/ntoskrnl/mm/ARM3/expool.c
+++ b/
reactos/ntoskrnl/mm/ARM3/expool.c
@@
-520,7
+520,7
@@
ExFreePoolWithTag(IN PVOID P,
// for this pool type
//
BlockSize = Entry->BlockSize;
- PoolType = (Entry->PoolType
& 3) - 1
;
+ PoolType = (Entry->PoolType
- 1) & BASE_POOL_TYPE_MASK
;
PoolDesc = PoolVector[PoolType];
//