Author: tkreuzer
Date: Mon Jan 18 18:24:28 2010
New Revision: 45137
URL:
http://svn.reactos.org/svn/reactos?rev=45137&view=rev
Log:
[NTOS]
Fix possible NULL pointer dereference. Spotted by Amine Khaldi.
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/contmem.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/contmem.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/contmem.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/contmem.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/contmem.c [iso-8859-1] Mon Jan 18 18:24:28 2010
@@ -276,7 +276,7 @@
// 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