Skip to content

Commit

Permalink
chore: make sure that the list of threads is empty when `PikeVM::try_…
Browse files Browse the repository at this point in the history
…match` is called
  • Loading branch information
plusvic committed Aug 16, 2023
1 parent 4cf81fa commit 1444450
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions yara-x/src/re/pikevm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ impl<'r> PikeVM<'r> {
let mut current_pos = 0;
let mut curr_byte = fwd_input.next();

// Make sure that the list of threads is empty when this function is
// called.
debug_assert!(self.threads.is_empty());

epsilon_closure(
self.code,
start,
Expand Down

0 comments on commit 1444450

Please sign in to comment.