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 Add support for workspace_min_width bar option. 2020-10-11 19:12:42 +02:00
i3bar.c swaybar: fix i3bar relative coordinates when scaling is used 2020-02-10 18:58:09 +01:00
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: allow status line cleanup to proceed when hidden 2020-07-22 09:40:37 +02:00
swaybar-protocol.7.scd man: update maintainer 2021-01-08 09:33:51 +01:00