]> git.ipfire.org Git - thirdparty/systemd.git/commit
json: decrease DEPTH_MAX to 4k
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 13 Nov 2018 00:05:59 +0000 (09:05 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 14 Nov 2018 09:44:18 +0000 (10:44 +0100)
commitd4a389eb5f00035064863d938354d7b325018a28
tree95023b4b13560c8665688471f277fb57f6c5c4f6
parent080a0178f8fe42102eb364e161c372f939c36050
json: decrease DEPTH_MAX to 4k

This makes DEPTH_MAX lower value, as test-json fails with stack
overflow.

Note that the test can pass with 8k, but for safety, here set to 4k.

Fixes #10738.
src/basic/json.c