Skip to content

Commit 51acc58

Browse files
Merge pull request #93 from wangqiang1588/master
add depends libs
2 parents 31bea18 + 30db8c3 commit 51acc58

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

plasma/lib/arch/arm/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def is_cmp(i):
4545
return i.id == ARM_INS_CMP
4646

4747
def is_jump(i):
48+
if len(i.operands) <= 0 :
49+
return False
4850
# Suppose that the written register is the first operand
4951
op = i.operands[0]
5052

@@ -67,6 +69,8 @@ def is_uncond_jump(i):
6769
return is_jump(i) and i.cc == ARM_CC_AL
6870

6971
def is_ret(i):
72+
if len(i.operands) <= 0 :
73+
return False
7074
op = i.operands[0]
7175
return i.group(CS_GRP_RET) or i.id == ARM_INS_BX and \
7276
op.type == ARM_OP_REG and op.value.reg == ARM_REG_LR

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pefile
22
pyelftools
33
msgpack-python>=0.4.6
4+
nose

0 commit comments

Comments
 (0)