mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 05:43:24 +00:00
[NTOS]
Fix possible NULL pointer dereference. Spotted by Amine Khaldi. svn path=/trunk/; revision=45137
This commit is contained in:
parent
27a2254546
commit
1108cf10b1
|
@ -276,7 +276,7 @@ MiFreeContiguousMemory(IN PVOID BaseAddress)
|
||||||
// Now get the PFN entry for this, and make sure it's the correct one
|
// Now get the PFN entry for this, and make sure it's the correct one
|
||||||
//
|
//
|
||||||
Pfn1 = MiGetPfnEntry(PageFrameIndex);
|
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
|
// This probably means you did a free on an address that was in between
|
||||||
|
|
Loading…
Reference in a new issue