From 489e35d1f08b8daa0bde6d0bdce424fcd2276713 Mon Sep 17 00:00:00 2001 From: Elizabeth Gilbert Date: Tue, 1 Oct 2024 18:15:53 -0400 Subject: [PATCH] Fix issue where some configured funcs to skip were being visited --- src/subiterator/module_subiterator.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/subiterator/module_subiterator.rs b/src/subiterator/module_subiterator.rs index 68d9337..644c62c 100644 --- a/src/subiterator/module_subiterator.rs +++ b/src/subiterator/module_subiterator.rs @@ -65,8 +65,11 @@ impl ModuleSubIterator { fn handle_skips(&mut self) { let mut curr_fid = self.get_curr_func().0; - while self.has_next_function() && self.skip_funcs.contains(&curr_fid) { + while self.skip_funcs.contains(&curr_fid) { self.curr_idx += 1; + if self.curr_idx >= self.metadata.len() { + break; + } curr_fid = self.get_curr_func().0; } }