mirror of https://github.com/google/oss-fuzz.git
jmespathpy: catch recursion errors (#9179)
Fixes e.g.: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54198 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54196
This commit is contained in:
parent
fa0e49f4b4
commit
398da218c0
|
@ -29,6 +29,8 @@ def TestOneInput(data):
|
|||
p.parse(fdp.ConsumeUnicodeNoSurrogates(sys.maxsize))
|
||||
except exceptions.JMESPathError:
|
||||
pass
|
||||
except RecursionError:
|
||||
pass
|
||||
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Reference in New Issue