]> git.sur5r.net Git - i3/i3/commit
Bugfix: avert endless loop on unexpected EOF at ipc messages (#3021)
authorxzfc <xzfc@users.noreply.github.com>
Thu, 9 Nov 2017 19:18:23 +0000 (02:18 +0700)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Thu, 9 Nov 2017 19:18:23 +0000 (11:18 -0800)
commit103e78e04a2015caad74e00a48f7faa83ae19f42
tree96095e2b7465fe7f9ade2a3f1c19953afcf583f4
parentc207921949440b0d7045bdf1f85c309a25bebdf0
Bugfix: avert endless loop on unexpected EOF at ipc messages (#3021)

Fix freeze on invalid ipc commands like

    echo -n $'i3-ipc\0\0\0\xa\0\0\0\0focus left' | socat - `i3 --get-socketpath`

Also, treat incomplete headers as IPC violation. Example of incomplete header:

    echo -n i3-ip | socat - `i3 --get-socketpath`
libi3/ipc_recv_message.c