We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa55058 commit 51c16abCopy full SHA for 51c16ab
capa/features/extractors/ida/helpers.py
@@ -219,9 +219,7 @@ def is_operand_equal(op1: idaapi.op_t, op2: idaapi.op_t) -> bool:
219
220
221
def is_zxor(insn: idaapi.insn_t) -> bool:
222
- if is_xor(insn):
223
- return is_operand_equal(insn.Op1, insn.Op2)
224
- return False
+ return is_xor(insn) and is_operand_equal(insn)
225
226
227
def is_basic_block_equal(bb1: idaapi.BasicBlock, bb2: idaapi.BasicBlock) -> bool:
0 commit comments