VirtualBox

Changeset 42729 in vbox for trunk


Ignore:
Timestamp:
Aug 9, 2012 7:31:30 PM (12 years ago)
Author:
vboxsync
Message:

IEM: Fixed indexing bug in iemOp_EscF1.

File:
1 edited

Legend:

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

    r42676 r42729  
    1234212342            case 6:
    1234312343            case 7:
    12344                 return FNIEMOP_CALL(g_apfnEscF1_E0toFF[(bRm & (X86_MODRM_REG_MASK |X86_MODRM_RM_MASK)) - 0xe0]);
     12344                Assert((unsigned)bRm - 0xe0U < RT_ELEMENTS(g_apfnEscF1_E0toFF));
     12345                return FNIEMOP_CALL(g_apfnEscF1_E0toFF[bRm - 0xe0]);
    1234512346            IEM_NOT_REACHED_DEFAULT_CASE_RET();
    1234612347        }
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