diff options
-rw-r--r-- | agent/tcf/framework/json.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/agent/tcf/framework/json.c b/agent/tcf/framework/json.c index 2a5cf9d3..bb642d39 100644 --- a/agent/tcf/framework/json.c +++ b/agent/tcf/framework/json.c @@ -855,6 +855,16 @@ static void skip_object(InputStream * inp) { } return; } + if (ch == '(') { + unsigned long size = json_read_ulong(inp); + ch = skip_char(inp); + if (ch != ')') exception(ERR_JSON_SYNTAX); + while (size) { + skip_char(inp); + size--; + } + return; + } exception(ERR_JSON_SYNTAX); } |