public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sys-process/ftop/files: ftop-1.0-overflow.patch
@ 2014-01-30  0:21 Tom Wijsman (tomwij)
  0 siblings, 0 replies; only message in thread
From: Tom Wijsman (tomwij) @ 2014-01-30  0:21 UTC (permalink / raw
  To: gentoo-commits

tomwij      14/01/30 00:21:21

  Added:                ftop-1.0-overflow.patch
  Log:
  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.
  
  (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)

Revision  Changes    Path
1.1                  sys-process/ftop/files/ftop-1.0-overflow.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/ftop/files/ftop-1.0-overflow.patch?rev=1.1&view=markup
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

Index: ftop-1.0-overflow.patch
===================================================================
Set tmp_buf and rate_buf to something ridiculously high to fix a buffer
overflow when COLUMNS is large. - JeR

--- a/src/ftop.c	2009-02-16 07:00:00.000000000 +0100
+++ b/src/ftop.c	2013-09-06 14:42:41.788852952 +0200
@@ -736,7 +736,7 @@
 {
     size_t i, j, bytes, bar_total;
     char more_procs_ch, more_files_ch, expanded_ch;
-    char tmp_buf[80], rate_buf[80];
+    char tmp_buf[2048], rate_buf[2048];
     char *tmp_str;
     snapshot *s, *s_prev;
     file_info *tmp_file;





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-30  0:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-30  0:21 [gentoo-commits] gentoo-x86 commit in sys-process/ftop/files: ftop-1.0-overflow.patch Tom Wijsman (tomwij)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox