From 9daa1b21ceb4e88868c8ef9be8d745dadef3e9d8 Mon Sep 17 00:00:00 2001 From: Andrew Lamoureux Date: Mon, 9 Oct 2023 13:58:25 -0400 Subject: Dont filter on platform when enumerating callees, issue #4672 --- python/function.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/function.py b/python/function.py index f558a8e8..b9cafd2e 100644 --- a/python/function.py +++ b/python/function.py @@ -3217,7 +3217,10 @@ class Function: """ called = [] for callee_addr in self.callee_addresses: - func = self.view.get_function_at(callee_addr, self.platform) + # a second argument to get_function_at() can filter callees whose platform matchers caller + # good when two functions with different arch's start at same address (rare polyglot code) + # bad for ARM/Thumb (common) + func = self.view.get_function_at(callee_addr) if func is not None: called.append(func) return called -- cgit v1.3.1