File 0003-Fixed-2749-buffer-size-exceeded-on-file-read-in-metr.patch of Package sblim-gather

From 62137d2b7222fdfdb984c71ed68e7bdbfab0dd07 Mon Sep 17 00:00:00 2001
From: Dave Heller <hellerda@us.ibm.com>
Date: Fri, 21 Aug 2015 11:49:31 -0400
Subject: [PATCH 3/3] Fixed #2749: buffer size exceeded on file read in metric
 plugin

---
 NEWS                           | 1 +
 plugin/metricOperatingSystem.c | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/plugin/metricOperatingSystem.c b/plugin/metricOperatingSystem.c
index 5536d39390ca..1e1153ebbafb 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;
-- 
2.15.0

openSUSE Build Service is sponsored by