From: Dave H. <hel...@us...> - 2015-08-21 15:49:44
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gather - Metric Data Gatherer". The branch, master has been updated via 62137d2b7222fdfdb984c71ed68e7bdbfab0dd07 (commit) from 506e4567a3ee40d313525a09e67f1a294aedd368 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 62137d2b7222fdfdb984c71ed68e7bdbfab0dd07 Author: Dave Heller <hel...@us...> Date: Fri Aug 21 11:49:31 2015 -0400 Fixed #2749: buffer size exceeded on file read in metric plugin ----------------------------------------------------------------------- Summary of changes: NEWS | 1 + plugin/metricOperatingSystem.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index c783e53..d39ccec 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ Changes in Version 2.2.10 Bugs fixed: - #2744 gatherer should create run directory if it does not exist +- #2749 buffer size exceeded on file read in metric plugin Features added: diff --git a/plugin/metricOperatingSystem.c b/plugin/metricOperatingSystem.c index 5536d39..1e1153e 100644 --- a/plugin/metricOperatingSystem.c +++ b/plugin/metricOperatingSystem.c @@ -362,7 +362,7 @@ int metricRetrCPUTime( int mid, MetricReturner mret ) { MetricValue * mv = NULL; FILE * fhd = NULL; - char buf[30000]; + char buf[60000]; char * ptr = NULL; char * end = NULL; char * hlp = NULL; @@ -698,7 +698,7 @@ int metricRetrContextSwitchCounter( int mid, MetricReturner mret ) { MetricValue * mv = NULL; FILE * fhd = NULL; - char buf[30000]; + char buf[60000]; char * ptr = NULL; size_t bytes_read = 0; unsigned long long ctxt = 0; @@ -751,7 +751,7 @@ int metricRetrHardwareInterruptCounter( int mid, MetricReturner mret ) { MetricValue * mv = NULL; FILE * fhd = NULL; - char buf[30000]; + char buf[60000]; char * ptr = NULL; size_t bytes_read = 0; unsigned long long intr = 0; hooks/post-receive -- gather - Metric Data Gatherer |