I am using IDA pro to analysis software binary. Sometime, some function with end up with sp-analysis failed. I am writing program with IDAPython. Is there any API to detect this case, so I can ignore those failure cases for now.
You can do this:
def get_sp_failed():
    failed_funcs = []
    ea = 0
    while ea != BADADDR:
        ea = idaapi.find_text(ea, 0, 0, "sp-analysis failed", idaapi.SEARCH_DOWN | idaapi.SEARCH_NEXT)
        if ea != BADADDR:
            func = idaapi.get_func(ea)
            failed_funcs.append(func.startEA)
            ea = func.endEA
    return failed_funcs
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With