Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Commit b281924

Browse files
authored
idautils: don't use cvar, use the helper functions (#52)
1 parent 718f810 commit b281924

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

python/idautils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ def Heads(start=None, end=None):
185185
186186
@return: list of heads between start and end
187187
"""
188-
if start is None: start = ida_ida.cvar.inf.min_ea
189-
if end is None: end = ida_ida.cvar.inf.max_ea
188+
if start is None: start = ida_ida.inf_get_min_ea()
189+
if end is None: end = ida_ida.inf_get_max_ea()
190190

191191
ea = start
192192
if not idc.is_head(ida_bytes.get_flags(ea)):
@@ -210,8 +210,8 @@ def Functions(start=None, end=None):
210210
in multiple segments will be reported multiple times, once in each segment
211211
as they are listed.
212212
"""
213-
if start is None: start = ida_ida.cvar.inf.min_ea
214-
if end is None: end = ida_ida.cvar.inf.max_ea
213+
if start is None: start = ida_ida.inf_get_min_ea()
214+
if end is None: end = ida_ida.inf_get_max_ea()
215215

216216
# find first function head chunk in the range
217217
chunk = ida_funcs.get_fchunk(start)

0 commit comments

Comments
 (0)