VirtualBox

Changeset 62456 in vbox


Ignore:
Timestamp:
Jul 22, 2016 4:02:20 PM (9 years ago)
Author:
vboxsync
Message:

supHardNtVpFreeOrReplacePrivateExecMemory: Don't loop forever trying to figure the size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyProcess-win.cpp

    r60700 r62456  
    14261426
    14271427    /*
    1428      * Try figure if the entire allocation size. Free/Alloc may fail otherwise.
     1428     * Try figure the entire allocation size. Free/Alloc may fail otherwise.
    14291429     */
    14301430    PVOID   pvFree = pMemInfo->AllocationBase;
     
    14451445        if (pMemInfo->AllocationBase != MemInfo2.AllocationBase)
    14461446            break;
     1447        if (pMemInfo2.RegionSize == 0)
     1448            break;
     1449        cbFree += MemInfo2.RegionSize;
    14471450    }
    14481451    SUP_DPRINTF(("supHardNtVpFreeOrReplacePrivateExecMemory: %s exec mem at %p (LB %#zx, %p LB %#zx)\n",
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette