summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2025-05-20 14:10:09 -0400
committerJordan Wiens <jordan@psifertex.com>2025-05-20 14:10:09 -0400
commit96a2a78cee5a9475a4b3f491bb59de1a292e08f2 (patch)
treea5f26e82f4431d1d7cad7b133cf135b724f200d0 /python/function.py
parent1b135ac9d41053326dd5da74d31716f90008f89f (diff)
add better verification for caller_sites to ensure calls, fixes #3722
Diffstat (limited to 'python/function.py')
-rw-r--r--python/function.py4
1 files changed, 3 insertions, 1 deletions
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):