From c9d97d52c17a8f8ee64002e15970cb1e54fa0134 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 19 Jan 2015 12:41:33 -0500 Subject: checkstack: Handle callw instruction Minor update to the checkstack.py tool. Signed-off-by: Kevin O'Connor --- scripts/checkstack.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/checkstack.py b/scripts/checkstack.py index e86a649..b49b6c8 100755 --- a/scripts/checkstack.py +++ b/scripts/checkstack.py @@ -181,6 +181,8 @@ def calc(): noteCall(cur, subfuncs, insnaddr, calladdr, 0) elif insn.startswith('calll'): noteCall(cur, subfuncs, insnaddr, calladdr, stackusage + 4) + elif insn.startswith('callw'): + noteCall(cur, subfuncs, insnaddr, calladdr, stackusage + 2) else: print("unknown call", ref) noteCall(cur, subfuncs, insnaddr, calladdr, stackusage) -- cgit v1.1