sway-patched-tray-menu/sway
Matt Coffin 2b5bf78faf Fix segfaults caused by faulty command parsing
This patch fixes faulty command parsing introduced by
f0f5de9a9e. When that commit allowed
criteria reset on ';' delimeters in commands lists, it failed to account
for its inner ','-parsing loop eating threw the entire rest of the
string.

This patch refactors argsep to use a list of multiple separators, and
(optionally) return the separator that it matched against in this
iteration via a pointer. This allows it to hint at the command parser
which separator was used at the end of the last command, allowing it to
trigger a potential secondary read of the criteria.

Fixes #4239
2019-06-11 14:40:36 -04:00
..
commands Add a new xkb_switch_layout command 2019-06-09 15:20:14 -04:00
config config/input: validate xkb keymap before storing 2019-06-09 20:13:22 +03:00
desktop desktop: output: fix use-after-free in destroy 2019-06-02 19:36:16 +03:00
input commands/input: perform basic keymap validation 2019-06-09 20:13:22 +03:00
tree Fix segfaults caused by faulty command parsing 2019-06-11 14:40:36 -04:00
commands.c Fix segfaults caused by faulty command parsing 2019-06-11 14:40:36 -04:00
config.c Destroy swaybg client on reload 2019-05-04 09:06:43 +03:00
criteria.c criteria: fix __focused__ when no focus or unset 2019-03-23 09:53:23 +02:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c ipc: add xkb_layout_names and xkb_active_layout_index 2019-06-09 15:04:50 -04:00
ipc-server.c Fix the payload type returned by IPC 2019-04-16 23:48:44 -04:00
main.c Remove extra inclusion of stdio.h 2019-04-27 20:53:21 -06:00
meson.build Add a new xkb_switch_layout command 2019-06-09 15:20:14 -04:00
security.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
server.c add seat sub command 'xcursor_theme' 2019-06-05 11:00:10 -04:00
sway-bar.5.scd Add swaybar protocol documentation 2019-05-30 10:54:23 -04:00
sway-input.5.scd Add missing docs for xkb_switch_layout 2019-06-10 01:41:44 -04:00
sway-ipc.7.scd Add docs for new IPC keyboard properties 2019-06-10 01:54:05 -04:00
sway-output.5.scd Implement output toggle 2019-05-14 00:11:04 -04:00
sway.1.scd Update language in sway.desktop & sway(1) 2019-03-10 15:09:52 -04:00
sway.5.scd criteria: reset on semicolon separation 2019-06-05 11:02:35 -04:00
swaynag.c Spawn swaynag as a wayland client 2019-04-14 12:41:59 +03:00
xdg_decoration.c Fix xdg-decoration unconfigured if set before first commit 2019-05-03 15:37:32 -06:00