Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sp-analysis failed in IDA pro

Tags:

ida

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.

like image 675
user3588276 Avatar asked Oct 27 '25 14:10

user3588276


1 Answers

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
like image 187
macro_controller Avatar answered Oct 29 '25 20:10

macro_controller



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!