projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix buffer overflow for LONG lines in journal handling code for update requests.
[rrdtool.git]
/
src
/
rrd_daemon.c
diff --git
a/src/rrd_daemon.c
b/src/rrd_daemon.c
index
9ecd39f
..
2737144
100644
(file)
--- a/
src/rrd_daemon.c
+++ b/
src/rrd_daemon.c
@@
-1331,7
+1331,7
@@
static int handle_request_update (HANDLER_PROTO) /* {{{ */
/* save it for the journal later */
if (!JOURNAL_REPLAY(sock))
- strncpy(orig_buf, buffer,
buffer_size
);
+ strncpy(orig_buf, buffer,
min(RRD_CMD_MAX,buffer_size)
);
status = buffer_get_field (&buffer, &buffer_size, &file);
if (status != 0)