From 12054aa27533356ac699ed6c9c3e3895c41ba6c0 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Fri, 7 Oct 2022 23:15:44 +0100 Subject: [PATCH] python-tabulate: avoid any exceptions from json (#8717) To avoid e.g. recursion errors as well, since this is irrelevant to python-tabulate. Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49986 --- projects/python-tabulate/fuzz_tabulate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/python-tabulate/fuzz_tabulate.py b/projects/python-tabulate/fuzz_tabulate.py index 56b299294..910c5d4a3 100644 --- a/projects/python-tabulate/fuzz_tabulate.py +++ b/projects/python-tabulate/fuzz_tabulate.py @@ -29,7 +29,7 @@ def TestOneInput(data): # Create random dictionary try: fuzzed_dict = json.loads(fdp.ConsumeString(sys.maxsize)) - except json.JSONDecodeError: + except: return if type(fuzzed_dict) is not dict: return