mirror of
https://github.com/mandiant/capa.git
synced 2026-07-11 22:51:52 -07:00
Add local variable for easy_rules_by_feature at the beginning of match
This commit is contained in:
@@ -1202,6 +1202,7 @@ class RuleSet:
|
||||
this routine should act just like `capa.engine.match`,
|
||||
except that it may be more performant.
|
||||
"""
|
||||
easy_rules_by_feature = {}
|
||||
if scope is Scope.FILE:
|
||||
easy_rules_by_feature = self._easy_file_rules_by_feature
|
||||
hard_rule_names = self._hard_file_rules
|
||||
|
||||
Reference in New Issue
Block a user