From e1eb487f38127ebf5d4cc46183078e13e4cd7135 Mon Sep 17 00:00:00 2001 From: Scott Lagler Date: Sun, 9 Mar 2025 20:14:36 -0400 Subject: [PATCH 1/2] fix: caller_sites now verifies if the address belongs to an LLIL_CALL --- python/function.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/function.py b/python/function.py index 83666ab9a..382ebe3cb 100644 --- a/python/function.py +++ b/python/function.py @@ -3066,7 +3066,9 @@ def caller_sites(self) -> Generator['binaryview.ReferenceSource', None, None]: :return: List of ReferenceSource objects of the call sites to this function :rtype: list(ReferenceSource) """ - return self.view.get_code_refs(self.start) + for x in self.view.get_code_refs(self.start): + if isinstance(x.llil, lowlevelil.LowLevelILCall): + yield x @property def workflow(self): From 5c63f18c3b406408ca2457b9789fe429be93d639 Mon Sep 17 00:00:00 2001 From: Scott Lagler Date: Tue, 11 Mar 2025 19:29:23 -0400 Subject: [PATCH 2/2] fix: iter name --- python/function.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/function.py b/python/function.py index 382ebe3cb..168c2ea94 100644 --- a/python/function.py +++ b/python/function.py @@ -3066,9 +3066,9 @@ def caller_sites(self) -> Generator['binaryview.ReferenceSource', None, None]: :return: List of ReferenceSource objects of the call sites to this function :rtype: list(ReferenceSource) """ - for x in self.view.get_code_refs(self.start): - if isinstance(x.llil, lowlevelil.LowLevelILCall): - yield x + for ref in self.view.get_code_refs(self.start): + if isinstance(ref.llil, lowlevelil.LowLevelILCall): + yield ref @property def workflow(self):