orjson: catch recursion limit exception (#8295)

Fixes orosn crash
This commit is contained in:
manunio 2022-08-19 09:07:46 +05:30 committed by GitHub
parent 444a4feafe
commit a7ef958c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -27,8 +27,11 @@ def TestOneInput(data):
except ValueError:
return
encoded = orjson.dumps(orjson_data)
del encoded
try:
encoded = orjson.dumps(orjson_data)
del encoded
except TypeError:
return
def main():