[SCM] Debian packaging of libproc-processtable-perl branch, master, updated. debian/0.47-1-6-g11b7787

Salvatore Bonaccorso carnil at debian.org
Mon May 27 05:22:24 UTC 2013


The following commit has been merged in the master branch:
commit 06f41ea6e07e32f782f710d94051180bf880b610
Author: Salvatore Bonaccorso <carnil at debian.org>
Date:   Mon May 27 06:59:29 2013 +0200

    Drop 696874-fix-Buffer-overflow-in-pctcpu.patch patch

diff --git a/debian/patches/696874-fix-Buffer-overflow-in-pctcpu.patch b/debian/patches/696874-fix-Buffer-overflow-in-pctcpu.patch
deleted file mode 100644
index a07b577..0000000
--- a/debian/patches/696874-fix-Buffer-overflow-in-pctcpu.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-Description: Fix for buffer overflow in pctcpu
- On systems with more than 9 logical CPUs, a process can use more than 999% of
- CPU and overflow pctcpu. This patch increases the buffer so that it will work
- for up to 9999 logical CPUs.
-Bug: https://rt.cpan.org/Public/Bug/Display.html?id=82175
-Bug-Debian: http://bugs.debian.org/696874
-Bug-Ubuntu: https://launchpad.net/bugs/1093289
-Forwarded: not-needed
-Author: Matthew L. Dailey <matthew.l.dailey at dartmouth.edu>
-Reviewed-by: Salvatore Bonaccorso <carnil at debian.org>
-Last-Update: 2012-12-23
-
---- a/os/Linux.h
-+++ b/os/Linux.h
-@@ -42,7 +42,7 @@
- 	char			*cmndline;
- 	char			*exec;
- 	/* other values */
--	char			pctcpu[sizeof("100.00")];	/* precent cpu, without '%' char */
-+	char			pctcpu[sizeof("100000.00")];	/* precent cpu, without '%' char */
- 	char			pctmem[sizeof("100.00")];	/* precent memory, without '%' char */
- };
- 
---- a/os/Linux.c
-+++ b/os/Linux.c
-@@ -548,7 +548,7 @@
-     float pctcpu = 100.0f * (prs->utime / 1e6) / (time(NULL) - prs->start_time);
- 
-     /* calculate pctcpu - NOTE: This assumes the cpu time is in microsecond units! */
--    sprintf(prs->pctcpu, "%3.2f", pctcpu);
-+    sprintf(prs->pctcpu, "%6.2f", pctcpu);
-     field_enable(format_str, F_PCTCPU);
- 
-     /* calculate pctmem */
diff --git a/debian/patches/series b/debian/patches/series
index 4cafd07..5299247 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1 @@
 spelling.patch
-696874-fix-Buffer-overflow-in-pctcpu.patch

-- 
Debian packaging of libproc-processtable-perl



More information about the Pkg-perl-cvs-commits mailing list