From 3baf88c9392f8d1e627cea04fd394a081ce59d02 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Tue, 7 Mar 2023 16:27:35 +0000 Subject: [PATCH] validators: update fuzzer (#9883) Catch relevant exceptions. Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=56767 Signed-off-by: David Korczynski --- projects/validators/fuzz_validators.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/validators/fuzz_validators.py b/projects/validators/fuzz_validators.py index 869bfd007..7f6528caa 100644 --- a/projects/validators/fuzz_validators.py +++ b/projects/validators/fuzz_validators.py @@ -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: