diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/evex.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/evex.in b/src/shared/evex.in index 2bcd2f4..f9574db 100644 --- a/src/shared/evex.in +++ b/src/shared/evex.in @@ -86,6 +86,9 @@ pub(crate) fn read_evex<T: Reader<<Arch as yaxpeax_arch::Arch>::Address, <Arch a } instruction.prefixes.apply_compressed_disp(false); } + if instruction.opcode == Opcode::Invalid { + return Err(DecodeError::InvalidOpcode); + } // TODO: apply rp and bp? } else { return Err(DecodeError::InvalidOpcode); |