mirror of https://github.com/google/oss-fuzz.git
pyjson5: ignore recursion errors (#9522)
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=55458
This commit is contained in:
parent
135b000926
commit
345116ec2b
|
@ -21,8 +21,9 @@ def TestOneInput(data):
|
|||
fdp = atheris.FuzzedDataProvider(data)
|
||||
try:
|
||||
json5.loads(fdp.ConsumeUnicodeNoSurrogates(sys.maxsize))
|
||||
except (ValueError, TypeError) as e:
|
||||
# Raised by the function
|
||||
except (ValueError, TypeError, RecursionError) as e:
|
||||
# ValueError and TypeError are raised by the function
|
||||
# RecursionError is not interesting.
|
||||
pass
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue