VirtualBox

Changeset 3952 in vbox for trunk/src


Ignore:
Timestamp:
Aug 1, 2007 7:54:00 AM (17 years ago)
Author:
vboxsync
Message:

Incorporated aam division by zero security fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/target-i386/translate.c

    r2422 r3952  
    54255425            goto illegal_op;
    54265426        val = ldub_code(s->pc++);
    5427         gen_op_aam(val);
    5428         s->cc_op = CC_OP_LOGICB;
     5427        if (val == 0) {
     5428            gen_exception(s, EXCP00_DIVZ, pc_start - s->cs_base);
     5429        } else {
     5430            gen_op_aam(val);
     5431            s->cc_op = CC_OP_LOGICB;
     5432        }
    54295433        break;
    54305434    case 0xd5: /* aad */
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