From bb0a9f8c32d11f31c2ff0a0971d022c078063373 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Sat, 10 Dec 2022 21:08:44 +0000 Subject: [PATCH] mrab-regex: avoid recursion error exceptions (#9183) They are uninteresting. Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54203 --- projects/mrab-regex/fuzz_regex.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/mrab-regex/fuzz_regex.py b/projects/mrab-regex/fuzz_regex.py index 155b0d206..68dee5825 100644 --- a/projects/mrab-regex/fuzz_regex.py +++ b/projects/mrab-regex/fuzz_regex.py @@ -28,6 +28,9 @@ def TestOneInput(data): except ValueError: # Compile throws several ValueErrors pass + except RecursionError: + # uninteresting + pass # Target regex.sub try: @@ -40,7 +43,9 @@ def TestOneInput(data): except ValueError: # Compile throws several ValueErrors pass - + except RecursionError: + # uninteresting + pass def main(): atheris.instrument_all()