author | Florian Forster <octo@collectd.org> | |
Tue, 2 May 2017 08:26:40 +0000 (10:26 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 2 May 2017 08:26:40 +0000 (10:26 +0200) | ||
commit | 59353d13d73f3a351c5dada73896344b9e2a3818 | |
tree | a9e3459034cbfe3d0331ea426744e306490667fd | tree | snapshot |
parent | a21477bc160169035f250724d7fa027fe3da1106 | commit | diff |
libcollectdclient: Fix off-by-one error when reading the username.
The allocated buffer includes a null byte, but the network packet doesn't.
That means we were reading one byte too many from the buffer, overwriting
the terminating null byte in the buffer.
The allocated buffer includes a null byte, but the network packet doesn't.
That means we were reading one byte too many from the buffer, overwriting
the terminating null byte in the buffer.
src/libcollectdclient/network_parse.c | diff | blob | history |