From 96a2a78cee5a9475a4b3f491bb59de1a292e08f2 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Tue, 20 May 2025 14:10:09 -0400 Subject: add better verification for caller_sites to ensure calls, fixes #3722 --- python/function.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/function.py b/python/function.py index 2616cba9..d2c677a7 100644 --- a/python/function.py +++ b/python/function.py @@ -3072,7 +3072,9 @@ class Function: :return: List of ReferenceSource objects of the call sites to this function :rtype: list(ReferenceSource) """ - return self.view.get_code_refs(self.start) + for site in self.view.get_code_refs(self.start): + if isinstance(site.llil, lowlevelil.LowLevelILCall): + yield site @property def workflow(self): -- cgit v1.3.1