validators: update fuzzer (#9883)

Catch relevant exceptions.

Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=56767

Signed-off-by: David Korczynski <david@adalogics.com>
This commit is contained in:
DavidKorczynski 2023-03-07 16:27:35 +00:00 committed by GitHub
parent c279d13834
commit 3baf88c939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ def TestOneInput(data):
fdp.ConsumeIntInRange(0, 1024)),
min_val=fdp.ConsumeIntInRange(1, 100),
max_val=fdp.ConsumeIntInRange(1, 100))
except validators.ValidationFailure:
except (validators.ValidationFailure, TypeError, AssertionError):
# Thrown by the functions.
pass
try: