Hehouhua / idapython

Automatically exported from code.google.com/p/idapython
Other
0 stars 0 forks source link

idautils.py Functions() logic error #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Functions(start_addr, end_addr)
2.
3.

What is the expected output? What do you see instead?
If start_addr is not code
#################################
    func = idaapi.get_func(start)
    while func and func.startEA < end:
        yield func.startEA
        func = idaapi.get_next_func(func.startEA)
#################################
func is None, the result is empty

What version of the product are you using? On what operating system?
IDA5.5

Please provide any additional information below.
the right logic should follow 5.4 version, i.e, add current if it's code, 
and find next function if possible
OR
func = idaapi.get_next_func(start-1) # if start >= 1

Original issue reported on code.google.com by qufup...@gmail.com on 14 Jul 2009 at 7:28

GoogleCodeExporter commented 8 years ago
This problem has been fixed already, please upgrade to 1.2.0.

Original comment by gergely.erdelyi on 14 Jul 2009 at 3:44

GoogleCodeExporter commented 8 years ago
This problem has been fixed already, please upgrade to 1.2.0.

Original comment by gergely.erdelyi on 14 Jul 2009 at 3:44