diff options
author | Geoff Greer <geoff@greer.fm> | 2017-10-22 01:00:32 -0700 |
---|---|---|
committer | Geoff Greer <geoff@greer.fm> | 2017-10-22 14:09:50 -0700 |
commit | 98875443ea96361eb4da7890c87922ccb3571f51 (patch) | |
tree | 69ad279926d48dc20265cb45c95dfabff5f0fddb /common/util.c | |
parent | 66d3777c1443207c6590fce63def93cb102a05a8 (diff) |
swaygrab: Increase max depth of JSON parsing to 256. Prevent segfault if IPC response can't be parsed.
The default max nesting depth of json-c is 32, which can cause some valid trees to fail to be parsed, so increase that. Also instead of segfaulting, just abort and print the error returned by json-c.
Diffstat (limited to 'common/util.c')
0 files changed, 0 insertions, 0 deletions