From a7ef958c49d1cad8a24ac50a1d7632345ad2931d Mon Sep 17 00:00:00 2001 From: manunio Date: Fri, 19 Aug 2022 09:07:46 +0530 Subject: [PATCH] orjson: catch recursion limit exception (#8295) Fixes orosn crash --- projects/orjson/fuzz_orjson.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/projects/orjson/fuzz_orjson.py b/projects/orjson/fuzz_orjson.py index 60fa90cc8..65e998fd4 100644 --- a/projects/orjson/fuzz_orjson.py +++ b/projects/orjson/fuzz_orjson.py @@ -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():