From 095d7a42a0d2858b4240fbd041d8c22a01c7e571 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 21 Apr 2017 22:08:06 -0400 Subject: Allowing rename of all types of variables --- python/mediumlevelil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/mediumlevelil.py') 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() -- cgit v1.3.1