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.
2 parents 31bea18 + 30db8c3 commit 51acc58Copy full SHA for 51acc58
plasma/lib/arch/arm/utils.py
@@ -45,6 +45,8 @@ def is_cmp(i):
45
return i.id == ARM_INS_CMP
46
47
def is_jump(i):
48
+ if len(i.operands) <= 0 :
49
+ return False
50
# Suppose that the written register is the first operand
51
op = i.operands[0]
52
@@ -67,6 +69,8 @@ def is_uncond_jump(i):
67
69
return is_jump(i) and i.cc == ARM_CC_AL
68
70
71
def is_ret(i):
72
73
74
75
return i.group(CS_GRP_RET) or i.id == ARM_INS_BX and \
76
op.type == ARM_OP_REG and op.value.reg == ARM_REG_LR
requirements.txt
@@ -1,3 +1,4 @@
1
pefile
2
pyelftools
3
msgpack-python>=0.4.6
4
+nose
0 commit comments