[Nagiosplug-checkins] nagiosplug/plugins check_procs.c,1.54,1.55

Thomas Guyot dermoth at users.sourceforge.net
Wed Jan 17 06:28:24 CET 2007


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv31144/plugins

Modified Files:
	check_procs.c 
Log Message:
Fix bug #1630970 Fix for buffer overflow of check_procs procprog string


Index: check_procs.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_procs.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- check_procs.c	22 Oct 2006 22:03:31 -0000	1.54
+++ check_procs.c	17 Jan 2007 05:28:22 -0000	1.55
@@ -193,7 +193,7 @@
 			strip (procargs);
 
 			/* Some ps return full pathname for command. This removes path */
-			procprog = base_name(procprog);
+			strcpy(procprog, base_name(procprog));
 
 			/* we need to convert the elapsed time to seconds */
 			procseconds = convert_to_seconds(procetime);





More information about the Commits mailing list