soupsieve: catch recursion errors (#9205)

This commit is contained in:
DavidKorczynski 2022-12-14 11:38:32 +00:00 committed by GitHub
parent afd8a78b0b
commit 29460d2212
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,10 @@ def TestOneInput(data):
sv.select(soupsieve_str, the_soup)
except sv.SelectorSyntaxError:
pass
except RecursionError:
# Not interesting
# Fixes, e.g. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54288
pass
except NotImplementedError:
# Not implemented
# Catches e.g. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54276