Changeset 25862 in vbox for trunk/src/VBox
- Timestamp:
- Jan 15, 2010 1:47:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/SELM.cpp
r25858 r25862 2013 2013 */ 2014 2014 RTSEL SelLdt = CPUMGetGuestLDTR(pVCpu); 2015 if ( (unsigned)(SelLdt & X86_SEL_MASK) < sizeof(X86DESC) /* the first selector is invalid, right? */ 2015 if ( (unsigned)(SelLdt & X86_SEL_MASK) < sizeof(X86DESC) /* the first selector is invalid, right? */ /** @todo r=bird: No, I don't think so */ 2016 2016 || (unsigned)(SelLdt & X86_SEL_MASK) + sizeof(X86DESC) - 1 > (unsigned)Gdtr.cbGdt) 2017 2017 return VERR_INVALID_SELECTOR; … … 2225 2225 */ 2226 2226 RTSEL SelLdt = CPUMGetGuestLDTR(pVCpu); 2227 if ( (unsigned)(SelLdt & X86_SEL_MASK) < sizeof(X86DESC) /* the first selector is invalid, right? */ 2227 if ( (unsigned)(SelLdt & X86_SEL_MASK) < sizeof(X86DESC) /* the first selector is invalid, right? */ /** @todo r=bird: No, I don't think so */ 2228 2228 || (unsigned)(SelLdt & X86_SEL_MASK) + sizeof(X86DESC) - 1 > (unsigned)Gdtr.cbGdt) 2229 2229 return VERR_INVALID_SELECTOR;
Note:
See TracChangeset
for help on using the changeset viewer.