projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #1377 from rubenk/mqtt-fix-out-of-bounds-write
[collectd.git]
/
src
/
rrdtool.c
diff --git
a/src/rrdtool.c
b/src/rrdtool.c
index
bebf468
..
764d6d6
100644
(file)
--- a/
src/rrdtool.c
+++ b/
src/rrdtool.c
@@
-204,7
+204,7
@@
static int value_list_to_string_multiple (char *buffer, int buffer_len,
int offset;
int status;
time_t tt;
-
in
t i;
+
size_
t i;
memset (buffer, '\0', buffer_len);
@@
-743,6
+743,7
@@
static int rrd_cache_insert (const char *filename,
new_rc = 1;
}
+ assert (value_time > 0); /* plugin_dispatch() ensures this. */
if (rc->last_value >= value_time)
{
pthread_mutex_unlock (&cache_lock);