projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3e1b0e
)
src/common.c: Check arguments of parse_values().
author
Florian Forster
<octo@collectd.org>
Sat, 5 Dec 2015 21:30:39 +0000
(22:30 +0100)
committer
Florian Forster
<octo@collectd.org>
Sat, 5 Dec 2015 21:30:39 +0000
(22:30 +0100)
CID: 37965
src/common.c
patch
|
blob
|
history
diff --git
a/src/common.c
b/src/common.c
index
64bc42d
..
4da8fee
100644
(file)
--- 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;