mrab-regex: avoid recursion error exceptions (#9183)

They are uninteresting.

Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54203
This commit is contained in:
DavidKorczynski 2022-12-10 21:08:44 +00:00 committed by GitHub
parent 8ad4bc718b
commit bb0a9f8c32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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()