From 9c878458b82d93106791a6ccffeb070d8c0e3985 Mon Sep 17 00:00:00 2001 From: Yacine Elhamer Date: Wed, 12 Jul 2023 15:43:32 +0100 Subject: [PATCH] fix typo: replace 'rules' with 'rule' --- capa/ida/plugin/form.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/capa/ida/plugin/form.py b/capa/ida/plugin/form.py index 503254d94..9850166b5 100644 --- a/capa/ida/plugin/form.py +++ b/capa/ida/plugin/form.py @@ -1210,11 +1210,11 @@ def update_rule_status(self, rule_text: str): if capa.rules.Scope.FUNCTION in rule.scopes and rule.name in func_matches.keys(): is_match = True - elif capa.rules.Scope.BASIC_BLOCK in rules.scopes and rule.name in bb_matches.keys(): + elif capa.rules.Scope.BASIC_BLOCK in rule.scopes and rule.name in bb_matches.keys(): is_match = True - elif capa.rules.Scope.INSTRUCTION in rules.scopes and rule.name in insn_matches.keys(): + elif capa.rules.Scope.INSTRUCTION in rule.scopes and rule.name in insn_matches.keys(): is_match = True - elif capa.rules.Scope.FILE in rules.scopes: + elif capa.rules.Scope.FILE in rule.scopes: try: _, file_matches = self.rulegen_feature_cache.find_file_capabilities(ruleset) except Exception as e: