Bugfix: avert endless loop on unexpected EOF at ipc messages (#3021)
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`
Airblader/i3,Airblader/i3,Airblader/i3-original,stapelberg/i3,Airblader/i3,stapelberg/i3,i3/i3,i3/i3,i3/i3,i3/i3,stapelberg/i3,Airblader/i3,Airblader/i3-original,Airblader/i3-original,Airblader/i3-original,stapelberg/i3,Airblader/i3-original