sway/swaybar
Tudor Brindus 03daa53a0e swaybar: fail gracefully on tokener creation fail
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.
2021-03-22 14:10:53 +01:00
..
tray swaybar: silence missing IconThemePath message 2021-03-17 09:49:04 +01:00
bar.c Make Wayland request listeners static const when possible 2021-02-04 09:49:06 +01:00
config.c
i3bar.c
input.c swaybar: Use position from wl_pointer.enter 2021-03-20 11:56:13 +01:00
ipc.c swaybar: fail gracefully on tokener creation fail 2021-03-22 14:10:53 +01:00
main.c Make command line option lists const 2021-02-04 09:49:06 +01:00
meson.build build: introduce sd-bus-provider option 2020-12-09 17:39:20 -05:00
render.c swaybar: use text subpixel antialias only where it would look good 2021-03-07 19:18:53 -05:00
status_line.c
swaybar-protocol.7.scd man: update maintainer 2021-01-08 09:33:51 +01:00