mirror of
https://github.com/mandiant/capa.git
synced 2025-12-30 14:40:53 -08:00
engine: Range should never return children results
This commit is contained in:
@@ -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