From 5ec97ef3aa1f2067c1db1fa08d12665bd5f08089 Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Thu, 4 Feb 2010 20:29:50 +0000 Subject: [PATCH] idautils.py: Functions() will return the correct list of functions even in large binaries --- python/idautils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/idautils.py b/python/idautils.py index b8d110e..ed840dc 100644 --- a/python/idautils.py +++ b/python/idautils.py @@ -219,8 +219,9 @@ def Functions(start=None, end=None): if not func: func = idaapi.get_next_func(start) while func and func.startEA < end: - yield func.startEA - func = idaapi.get_next_func(func.startEA) + startea = func.startEA + yield startea + func = idaapi.get_next_func(startea) def Chunks(start): @@ -546,4 +547,4 @@ class _cpu(object): return idc.SetRegValue(value, name) cpu = _cpu() -procregs = _procregs() \ No newline at end of file +procregs = _procregs()