Reject invalid move to CS

This commit is contained in:
Alexis Engelke
2019-11-03 11:54:00 +01:00
parent dbfcf33c33
commit 2bf33017bc

View File

@@ -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;