VirtualBox

Changeset 12674 in vbox for trunk/src


Ignore:
Timestamp:
Sep 23, 2008 3:12:56 PM (16 years ago)
Author:
vboxsync
Message:

Off by one.

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r12664 r12674  
    18661866                        unsigned uBPLen = aIOSize[X86_DR7_GET_LEN(pCtx->dr[7], i)];
    18671867
    1868                         if (    (IoExitInfo.n.u16Port >= pCtx->dr[i] && IoExitInfo.n.u16Port <= pCtx->dr[i] + uBPLen)
     1868                        if (    (IoExitInfo.n.u16Port >= pCtx->dr[i] && IoExitInfo.n.u16Port < pCtx->dr[i] + uBPLen)
    18691869                            &&  (pCtx->dr[7] & (X86_DR7_L(i) | X86_DR7_G(i)))
    18701870                            &&  (pCtx->dr[7] & X86_DR7_RW(i, X86_DR7_RW_IO)) == X86_DR7_RW(i, X86_DR7_RW_IO))
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r12664 r12674  
    21762176                        unsigned uBPLen = aIOSize[X86_DR7_GET_LEN(pCtx->dr[7], i)];
    21772177
    2178                         if (    (uPort >= pCtx->dr[i] && uPort <= pCtx->dr[i] + uBPLen)
     2178                        if (    (uPort >= pCtx->dr[i] && uPort < pCtx->dr[i] + uBPLen)
    21792179                            &&  (pCtx->dr[7] & (X86_DR7_L(i) | X86_DR7_G(i)))
    21802180                            &&  (pCtx->dr[7] & X86_DR7_RW(i, X86_DR7_RW_IO)) == X86_DR7_RW(i, X86_DR7_RW_IO))
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