Skip to content

Commit

Permalink
Ensure a copy of the state is made
Browse files Browse the repository at this point in the history
Otherwise the ConversionState will share the same underlying
processing_state.
  • Loading branch information
kelnage committed Jun 28, 2023
1 parent a159dad commit 3cf5e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sigma/conversion/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def convert_rule(self, rule : SigmaRule, output_format : Optional[str] = None) -
# 2. Convert conditions
error_state = "converting"
states = [
ConversionState(processing_state=self.last_processing_pipeline.state)
ConversionState(processing_state=dict(self.last_processing_pipeline.state))
for _ in rule.detection.parsed_condition
]
queries = [
Expand Down

0 comments on commit 3cf5e8a

Please sign in to comment.