mirror of
https://github.com/swaywm/sway.git
synced 2024-11-21 23:41:27 +00:00
03daa53a0e
This commit adds missing error-handling to the creation of the tokener instance. The stack depth parameter is used to initialize an array that json-c prefaults ahead of time, causing INT_MAX to result in out of memory errors. Also drop the depth to 256 to prevent this OOM. Though this fix is not very satisfactory -- json-c could be made to not prefault -- it should do for now. At the very least, swaybar will not crash. Fixes #6126. |
||
---|---|---|
.. | ||
tray | ||
bar.c | ||
config.c | ||
i3bar.c | ||
input.c | ||
ipc.c | ||
main.c | ||
meson.build | ||
render.c | ||
status_line.c | ||
swaybar-protocol.7.scd |