network plugin: Fix endless loop DOS in parse_packet()
authorPavel Rochnyack <pavel2000@ngs.ru>
Mon, 3 Apr 2017 05:57:09 +0000 (11:57 +0600)
committerFlorian Forster <octo@collectd.org>
Tue, 4 Apr 2017 08:48:18 +0000 (10:48 +0200)
commitf6be4f9b49b949b379326c3d7002476e6ce4f211
tree6c4f4627fbab92a972843d4506ee388a6eeee404
parent294aa61f5e961b9a9bec1e27e810a10142017db8
network plugin: Fix endless loop DOS in parse_packet()

When correct 'Signature part' is received by Collectd, configured without
AuthFile option, condition for endless loop occurs due to missing increase
of pointer to next unprocessed part.

This is a forward-port of #2233.

Fixes: CVE-2017-7401
Closes: #2174
Signed-off-by: Florian Forster <octo@collectd.org>
src/network.c