diff options
author | Dario Lombardo <lomato@gmail.com> | 2019-01-19 23:36:53 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2019-01-20 21:58:39 +0000 |
commit | 91d68d2ec9c100b6c4e5185a97d38e1aedfecd4c (patch) | |
tree | 25994297e86023a783b42865f3efd4089ed5b479 /wsutil/json_dumper.h | |
parent | e953785dd29e6f20efb1c1081641e2850e8486f5 (diff) |
json_dumper: increase JSON_DUMPER_MAX_DEPTH to 1100.
The new value has been chosen to make room for sharkd packet output
as: proto.c:MAX_TREE_LEVELS * 2 + 10% of additional sharkd overhead.
A new regression test for sharkd has been added that requires more
than 15 levels.
Change-Id: Ie54955c79c50c60b95c99b1a3c472888fc4842ac
Reviewed-on: https://code.wireshark.org/review/31624
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'wsutil/json_dumper.h')
-rw-r--r-- | wsutil/json_dumper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsutil/json_dumper.h b/wsutil/json_dumper.h index f2ea2c58ba..9ecefc84e1 100644 --- a/wsutil/json_dumper.h +++ b/wsutil/json_dumper.h @@ -49,7 +49,7 @@ extern "C" { */ /** Maximum object/array nesting depth. */ -#define JSON_DUMPER_MAX_DEPTH 15 +#define JSON_DUMPER_MAX_DEPTH 1100 typedef struct json_dumper { FILE *output_file; /**< Output file, must be set. */ #define JSON_DUMPER_FLAGS_PRETTY_PRINT (1 << 0) /* Enable pretty printing. */ |