VirtualBox

Changeset 64323 in vbox


Ignore:
Timestamp:
Oct 19, 2016 3:34:57 PM (8 years ago)
Author:
vboxsync
Message:

pgmHandlerPhysicalExRegister: Corrected check for single RAM range.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp

    r64117 r64323  
    243243    PPGMRAMRANGE pRam = pgmPhysGetRange(pVM, GCPhys);
    244244    if (   !pRam
    245         || GCPhysLast < pRam->GCPhys
    246         || GCPhys > pRam->GCPhysLast)
     245        || GCPhysLast > pRam->GCPhysLast)
    247246    {
    248247#ifdef IN_RING3
     
    252251        return VERR_PGM_HANDLER_PHYSICAL_NO_RAM_RANGE;
    253252    }
     253    Assert(GCPhys >= pRam->GCPhys && GCPhys < pRam->GCPhysLast);
     254    Assert(GCPhysLast <= pRam->GCPhysLast && GCPhysLast >= pRam->GCPhys);
    254255
    255256    /*
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