Add local variable for easy_rules_by_feature at the beginning of match

This commit is contained in:
cl3o
2021-12-06 20:51:35 +01:00
parent 5b35058338
commit c15a9a72f5
+1
View File
@@ -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