From: Florian Forster Date: Sat, 5 Dec 2015 21:30:39 +0000 (+0100) Subject: src/common.c: Check arguments of parse_values(). X-Git-Tag: collectd-5.5.1~24^2~4 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c9c3f6489d993187844917190df4d7499120bec6;p=collectd.git src/common.c: Check arguments of parse_values(). CID: 37965 --- diff --git a/src/common.c b/src/common.c index 64bc42da..4da8feee 100644 --- a/src/common.c +++ b/src/common.c @@ -1104,6 +1104,9 @@ int parse_values (char *buffer, value_list_t *vl, const data_set_t *ds) char *ptr; char *saveptr; + if ((buffer == NULL) || (vl == NULL) || (ds == NULL)) + return EINVAL; + i = -1; dummy = buffer; saveptr = NULL;