diff options
author | 2017-10-22 01:00:32 -0700 | |
---|---|---|
committer | 2017-10-22 14:09:50 -0700 | |
commit | 98875443ea96361eb4da7890c87922ccb3571f51 (patch) | |
tree | 69ad279926d48dc20265cb45c95dfabff5f0fddb /include/swaybar/tray/sni.h | |
parent | Merge pull request #1419 from 4e554c4c/better_logs (diff) | |
download | sway-98875443ea96361eb4da7890c87922ccb3571f51.tar.gz sway-98875443ea96361eb4da7890c87922ccb3571f51.tar.zst sway-98875443ea96361eb4da7890c87922ccb3571f51.zip |
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 'include/swaybar/tray/sni.h')
0 files changed, 0 insertions, 0 deletions