Skip to content
Snippets Groups Projects
Commit 1516421f authored by Leon Weiss's avatar Leon Weiss
Browse files

Treat RIZ/EIZ as an invalid register in hasBaseRegister

parent 4a15d789
No related branches found
No related tags found
1 merge request!47Improve jump table detection and debugging output
......@@ -455,7 +455,10 @@ bool DecodedOperandCapstoneX86_t::hasBaseRegister() const
op.mem.base==X86_REG_RIP ||
op.mem.base==X86_REG_EIP ||
op.mem.base==X86_REG_IP;
const auto br_is_valid = op.mem.base!=X86_REG_INVALID;
const auto br_is_valid =
op.mem.base != X86_REG_INVALID &&
op.mem.base != X86_REG_EIZ &&
op.mem.base != X86_REG_RIZ;
return isMemory() && br_is_valid && !br_is_pc;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment