VirtualBox

Changeset 15111 in vbox


Ignore:
Timestamp:
Dec 8, 2008 2:47:56 PM (16 years ago)
Author:
vboxsync
Message:

Fixed offset overflow bug (#3357).

File:
1 edited

Legend:

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

    r14600 r15111  
    5252            case MMLOOKUPHYPERTYPE_LOCKED:
    5353            {
    54                 const uint32_t off = (RTR3UINTPTR)R3Ptr - (RTR3UINTPTR)pLookup->u.Locked.pvR3;
     54                const RTR3UINTPTR off = (RTR3UINTPTR)R3Ptr - (RTR3UINTPTR)pLookup->u.Locked.pvR3;
    5555                if (off < pLookup->cb)
    5656                {
     
    6363            case MMLOOKUPHYPERTYPE_HCPHYS:
    6464            {
    65                 const uint32_t off = (RTR3UINTPTR)R3Ptr - (RTR3UINTPTR)pLookup->u.HCPhys.pvR3;
     65                const RTR3UINTPTR off = (RTR3UINTPTR)R3Ptr - (RTR3UINTPTR)pLookup->u.HCPhys.pvR3;
    6666                if (off < pLookup->cb)
    6767                {
     
    114114            case MMLOOKUPHYPERTYPE_LOCKED:
    115115            {
    116                 const uint32_t off = (RTR3UINTPTR)R0Ptr - (RTR0UINTPTR)pLookup->u.Locked.pvR0;
     116                const RTR0UINTPTR off = (RTR0UINTPTR)R0Ptr - (RTR0UINTPTR)pLookup->u.Locked.pvR0;
    117117                if (off < pLookup->cb && pLookup->u.Locked.pvR0)
    118118                {
     
    125125            case MMLOOKUPHYPERTYPE_HCPHYS:
    126126            {
    127                 const uint32_t off = (RTR0UINTPTR)R0Ptr - (RTR0UINTPTR)pLookup->u.HCPhys.pvR0;
     127                const RTR0UINTPTR off = (RTR0UINTPTR)R0Ptr - (RTR0UINTPTR)pLookup->u.HCPhys.pvR0;
    128128                if (off < pLookup->cb && pLookup->u.HCPhys.pvR0)
    129129                {
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