Skip to content

Commit 96a2a78

Browse files
committed
add better verification for caller_sites to ensure calls, fixes #3722
1 parent 1b135ac commit 96a2a78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/function.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3072,7 +3072,9 @@ def caller_sites(self) -> Generator['binaryview.ReferenceSource', None, None]:
30723072
:return: List of ReferenceSource objects of the call sites to this function
30733073
:rtype: list(ReferenceSource)
30743074
"""
3075-
return self.view.get_code_refs(self.start)
3075+
for site in self.view.get_code_refs(self.start):
3076+
if isinstance(site.llil, lowlevelil.LowLevelILCall):
3077+
yield site
30763078

30773079
@property
30783080
def workflow(self):

0 commit comments

Comments
 (0)