

def validate(self, r):
    '\n        Called automatically by self.result.\n        '
    if self.show_invalid:
        r.valid = True
    elif r.valid:
        if (not r.description):
            r.valid = False
        if (r.size and ((r.size + r.offset) > r.file.size)):
            r.valid = False
        if (r.jump and ((r.jump + r.offset) > r.file.size)):
            r.valid = False
    if r.valid:
        if (r.id == self.one_of_many):
            r.display = False
        elif r.many:
            self.one_of_many = r.id
        else:
            self.one_of_many = None

dataset/ETHPy150Open devttys0/binwalk/src/binwalk/modules/signature.py Signature.validate/original