mirror of https://github.com/google/oss-fuzz.git
tomlkit: catch recursion errors (#9524)
This commit is contained in:
parent
dfb6df7911
commit
d5a7d1c0ba
|
@ -22,7 +22,11 @@ def TestOneInput(data):
|
|||
parser = tomlkit.parser.Parser(fdp.ConsumeUnicodeNoSurrogates(sys.maxsize))
|
||||
try:
|
||||
parser.parse()
|
||||
except tomlkit.exceptions.TOMLKitError:
|
||||
except (
|
||||
tomlkit.exceptions.TOMLKitError,
|
||||
RecursionError
|
||||
):
|
||||
# Recursion errors are not interesting
|
||||
pass
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue