Skip to content

Commit e91ba10

Browse files
committed
fix is_zxor to compare both operands directly
Signed-off-by: vibhatsu <[email protected]>
1 parent 51c16ab commit e91ba10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

capa/features/extractors/ida/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def is_operand_equal(op1: idaapi.op_t, op2: idaapi.op_t) -> bool:
219219

220220

221221
def is_zxor(insn: idaapi.insn_t) -> bool:
222-
return is_xor(insn) and is_operand_equal(insn)
222+
return is_xor(insn) and is_operand_equal(insn.Op1, insn.Op2)
223223

224224

225225
def is_basic_block_equal(bb1: idaapi.BasicBlock, bb2: idaapi.BasicBlock) -> bool:

0 commit comments

Comments
 (0)