VirtualBox

Changeset 100828 in vbox for trunk


Ignore:
Timestamp:
Aug 9, 2023 12:03:53 PM (19 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158727
Message:

VMM/IEM: Corrected BODY_CHECK_CS_LIM calc was off by one. Untested. bugref:10369

File:
1 edited

Legend:

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

    r100824 r100828  
    166166 *        test, since it would require replacing the default firmware. */
    167167#define BODY_CHECK_CS_LIM(a_cbInstr) do { \
    168         if (RT_LIKELY((uint32_t)(pVCpu->cpum.GstCtx.eip + cbInstr) <= pVCpu->cpum.GstCtx.cs.u32Limit)) \
     168        if (RT_LIKELY((uint32_t)(pVCpu->cpum.GstCtx.eip + cbInstr - 1U) <= pVCpu->cpum.GstCtx.cs.u32Limit)) \
    169169        { /* likely */ } \
    170170        else \
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