projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27a2254
)
[NTOS]
author
Timo Kreuzer
<timo.kreuzer@reactos.org>
Mon, 18 Jan 2010 17:24:28 +0000
(17:24 +0000)
committer
Timo Kreuzer
<timo.kreuzer@reactos.org>
Mon, 18 Jan 2010 17:24:28 +0000
(17:24 +0000)
Fix possible NULL pointer dereference. Spotted by Amine Khaldi.
svn path=/trunk/; revision=45137
reactos/ntoskrnl/mm/ARM3/contmem.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/mm/ARM3/contmem.c
b/reactos/ntoskrnl/mm/ARM3/contmem.c
index
c5565d2
..
890bd74
100644
(file)
--- a/
reactos/ntoskrnl/mm/ARM3/contmem.c
+++ b/
reactos/ntoskrnl/mm/ARM3/contmem.c
@@
-276,7
+276,7
@@
MiFreeContiguousMemory(IN PVOID BaseAddress)
// Now get the PFN entry for this, and make sure it's the correct one
//
Pfn1 = MiGetPfnEntry(PageFrameIndex);
- if (
Pfn1->u3.e1.StartOfAllocation == 0
)
+ if (
(!Pfn1) || (Pfn1->u3.e1.StartOfAllocation == 0)
)
{
//
// This probably means you did a free on an address that was in between