Reject invalid move to CS
This commit is contained in:
3
decode.c
3
decode.c
@@ -629,6 +629,9 @@ fd_decode(const uint8_t* buffer, size_t len_sz, int mode_int, uintptr_t address,
|
|||||||
instr->operands[i].misc = reg_type;
|
instr->operands[i].misc = reg_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (instr->type == FDI_MOV_G2S && instr->operands[0].reg == 1)
|
||||||
|
return FD_ERR_UD;
|
||||||
|
|
||||||
instr->size = off;
|
instr->size = off;
|
||||||
|
|
||||||
return off;
|
return off;
|
||||||
|
|||||||
Reference in New Issue
Block a user