luci-lib-jsonc: prevent infinite recursion in stringify
authorJo-Philipp Wich <jo@mein.io>
Fri, 21 Dec 2018 12:16:16 +0000 (13:16 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 21 Dec 2018 14:41:19 +0000 (15:41 +0100)
commit21db93576aebe52707790fc1a8733dc2703d59a6
tree71ede42c7a039a12577f6f7165d5fcca88a2debe
parent5ae6f060145e56f3d1ee4a65e82da5b6354c54f6
luci-lib-jsonc: prevent infinite recursion in stringify

Also increase the stack size as needed to prevent crashes when serializing
deeply nested tables.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libs/luci-lib-jsonc/src/jsonc.c