Add more status codes to the encoder #265
Labels
A-encoder
Area: Encoder
C-enhancement
Category: Enhancement of existing features
P-medium
Priority: Medium
After some testing and messing around I noticed that the encoder doesn't provide a lot info when it comes to failures.
Example 1:
Because the size is not specified on the memory operand it will result ZYDIS_STATUS_IMPOSSIBLE_INSTRUCTION, a better result would be something like "Invalid operand size" in this case.
Example 2:
Not assigning a branch type also leads to ZYDIS_STATUS_IMPOSSIBLE_INSTRUCTION
Example 3:
Using immediate value outside the possible branch type range.
And so on.
The text was updated successfully, but these errors were encountered: