ghidra/Ghidra/Features/Python/ghidra_scripts/PrintNonZeroPurge.py
2019-03-26 13:46:51 -04:00

5 lines
330 B
Python

# Prints out all the functions in the program that have a non-zero stack purge size
for func in currentProgram.getFunctionManager().getFunctions(currentProgram.evaluateAddress("0"), 1):
if func.getStackPurgeSize() != 0:
print "Function", func, "at", func.getEntryPoint(), "has nonzero purge size", func.getStackPurgeSize()