From c9df0cc4539fbfb56f57162677c3237b4376cc35 Mon Sep 17 00:00:00 2001 From: Pppp1116 Date: Tue, 9 Dec 2025 21:36:05 +0000 Subject: [PATCH] Handle block destination iterator --- RegistryKeyBitfieldReport.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RegistryKeyBitfieldReport.py b/RegistryKeyBitfieldReport.py index 2826753..3694b95 100644 --- a/RegistryKeyBitfieldReport.py +++ b/RegistryKeyBitfieldReport.py @@ -600,7 +600,9 @@ def _analyze_function(self, func, depth, incoming_state): inst = inst_iter.next() last_inst = inst self._propagate_taint(inst, state, func, depth) - for succ in blk.getDestinations(self.monitor): + succ_iter = blk.getDestinations(self.monitor) + while getattr(succ_iter, "hasNext", None) and succ_iter.hasNext(): + succ = succ_iter.next() succ_block = succ.getDestinationBlock() if succ_block is None: continue