author | Sebastian Harl <sh@tokkee.org> | |
Wed, 14 May 2014 18:38:17 +0000 (20:38 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 14 May 2014 18:38:17 +0000 (20:38 +0200) | ||
commit | 0b34902dc2023319a5a17795aca14eeda365ed5d | |
tree | d437d5c3f737d374799359c4b8042c8a97086008 | tree | snapshot |
parent | f813057d5060171ea345511ee02d8670eb05637e | commit | diff |
frontend: Fix invalid command handling when receiving data in chunks.
When skipping over invalid command data, make sure not to skip more data than
what's currently available. Rather, remember how much data needs to be ignored
and do so after actually receiving it.
Added a new test which catches these cases and also provides some more
low-level communication tests.
When skipping over invalid command data, make sure not to skip more data than
what's currently available. Rather, remember how much data needs to be ignored
and do so after actually receiving it.
Added a new test which catches these cases and also provides some more
low-level communication tests.
src/frontend/connection-private.h | diff | blob | history | |
src/frontend/connection.c | diff | blob | history | |
t/unit/frontend/connection_test.c | diff | blob | history |