From f5eb7ea1a9a655ba2e1775341554bf239cfe65a8 Mon Sep 17 00:00:00 2001 From: cvzi Date: Sat, 8 Jul 2023 01:51:21 +0200 Subject: json: unify json_parse depth to MAX_JSON_DEPTH=50 --- input/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input/ipc.c') diff --git a/input/ipc.c b/input/ipc.c index baf68aaf48..ea69fb7c24 100644 --- a/input/ipc.c +++ b/input/ipc.c @@ -126,7 +126,7 @@ static char *json_execute_command(struct mpv_handle *client, void *ta_parent, bool async = false; bool send_reply = true; - rc = json_parse(ta_parent, &msg_node, &src, 50); + rc = json_parse(ta_parent, &msg_node, &src, MAX_JSON_DEPTH); if (rc < 0) { mp_err(log, "malformed JSON received: '%s'\n", src); rc = MPV_ERROR_INVALID_PARAMETER; -- cgit v1.2.3