Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-process/ftop/files: ftop-1.0-overflow.patch
Date: Thu, 30 Jan 2014 00:21:30
Message-Id: 20140130002121.D0CF42004E@flycatcher.gentoo.org
1 tomwij 14/01/30 00:21:21
2
3 Added: ftop-1.0-overflow.patch
4 Log:
5 New package for sys-process/ftop, monitors open files and filesystems; tested and adapted the ebuild and patch provided by Jeroen Roovers (rej), fixes bug #483772 reported by Jesse Adelman.
6
7 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
8
9 Revision Changes Path
10 1.1 sys-process/ftop/files/ftop-1.0-overflow.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/ftop/files/ftop-1.0-overflow.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/ftop/files/ftop-1.0-overflow.patch?rev=1.1&content-type=text/plain
14
15 Index: ftop-1.0-overflow.patch
16 ===================================================================
17 Set tmp_buf and rate_buf to something ridiculously high to fix a buffer
18 overflow when COLUMNS is large. - JeR
19
20 --- a/src/ftop.c 2009-02-16 07:00:00.000000000 +0100
21 +++ b/src/ftop.c 2013-09-06 14:42:41.788852952 +0200
22 @@ -736,7 +736,7 @@
23 {
24 size_t i, j, bytes, bar_total;
25 char more_procs_ch, more_files_ch, expanded_ch;
26 - char tmp_buf[80], rate_buf[80];
27 + char tmp_buf[2048], rate_buf[2048];
28 char *tmp_str;
29 snapshot *s, *s_prev;
30 file_info *tmp_file;