VirtualBox

Changeset 5610 in vbox for trunk/src/VBox/VMM/PATM/VMMGC


Ignore:
Timestamp:
Nov 2, 2007 11:10:07 AM (17 years ago)
Author:
vboxsync
Message:

Fixed boundary checks and support partial instruction updates (e.g. destination address of jmp instruction)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/VMMGC/PATMGC.cpp

    r5609 r5610  
    108108    if (pPatchPage)
    109109    {
    110         if (    pPatchPage->pLowestAddrGC  <= (RTGCPTR)((RTGCUINTPTR)GCPtr + cbWrite)
    111             ||  pPatchPage->pHighestAddrGC > GCPtr)
     110        if (    pPatchPage->pLowestAddrGC  > (RTGCPTR)((RTGCUINTPTR)GCPtr + cbWrite - 1)
     111            ||  pPatchPage->pHighestAddrGC < GCPtr)
    112112        {
    113113            /* This part of the page was not patched; try to emulate the instruction. */
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