diff --git a/plugins/mipsrop/mipsrop.py b/plugins/mipsrop/mipsrop.py index d71ac5b..32d6cb7 100755 --- a/plugins/mipsrop/mipsrop.py +++ b/plugins/mipsrop/mipsrop.py @@ -460,7 +460,7 @@ def _print_gadgets(self, gadgets): def _get_marked_gadgets(self): rop_gadgets = {} - for i in range(1, 1024): + for i in range(0 if idaapi.IDA_SDK_VERSION >= 700 else 1, 1024): marked_pos = idc.GetMarkedPos(i) if marked_pos != idc.BADADDR: marked_comment = idc.GetMarkComment(i)