mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 12:23:29 +00:00
[SOFT386]
Disallow direct writing to CS. Changing CS must be done with a far jump. svn path=/branches/ntvdm/; revision=60399
This commit is contained in:
@@ -4210,7 +4210,8 @@ SOFT386_OPCODE_HANDLER(Soft386OpcodeMovLoadSeg)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (ModRegRm.Register >= SOFT386_NUM_SEG_REGS)
|
||||
if ((ModRegRm.Register >= SOFT386_NUM_SEG_REGS)
|
||||
|| ((SOFT386_SEG_REGS)ModRegRm.Register == SOFT386_REG_CS))
|
||||
{
|
||||
/* Invalid */
|
||||
Soft386Exception(State, SOFT386_EXCEPTION_UD);
|
||||
|
||||
Reference in New Issue
Block a user