mirror of
https://github.com/mandiant/capa.git
synced 2026-07-10 06:02:29 -07:00
engine: Range should never return children results
This commit is contained in:
+1
-1
@@ -155,7 +155,7 @@ class Range(Statement):
|
||||
|
||||
def evaluate(self, ctx):
|
||||
if self.child not in ctx:
|
||||
return Result(False, self, [self.child])
|
||||
return Result(False, self, [])
|
||||
|
||||
count = len(ctx[self.child])
|
||||
return Result(self.min <= count <= self.max, self, [], locations=ctx[self.child])
|
||||
|
||||
Reference in New Issue
Block a user