summaryrefslogtreecommitdiff
path: root/python/mediumlevelil.py
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2017-04-21 22:08:06 -0400
committerRusty Wagner <rusty@vector35.com>2017-04-21 22:08:06 -0400
commit095d7a42a0d2858b4240fbd041d8c22a01c7e571 (patch)
tree94dc183ea3091653cbebfb068def78415b8b209f /python/mediumlevelil.py
parente673afe4b958b5f8f808ff8457d0664ccecce93a (diff)
Allowing rename of all types of variables
Diffstat (limited to 'python/mediumlevelil.py')
-rw-r--r--python/mediumlevelil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py
index 316e45b7..bc7a5c89 100644
--- a/python/mediumlevelil.py
+++ b/python/mediumlevelil.py
@@ -169,8 +169,8 @@ class MediumLevelILInstruction(object):
operand_list = core.BNMediumLevelILGetOperandList(func.handle, self.expr_index, i, count)
i += 1
value = []
- for j in operand_list:
- value.append(function.Variable.from_identifier(self.function.source_function, j))
+ for j in xrange(count.value):
+ value.append(function.Variable.from_identifier(self.function.source_function, operand_list[j]))
core.BNMediumLevelILFreeOperandList(operand_list)
elif operand_type == "var_ssa_list":
count = ctypes.c_ulonglong()