xref: /OK3568_Linux_fs/buildroot/package/ftop/0001-overflow.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSet tmp_buf and rate_buf to something ridiculously high to fix a buffer
2*4882a593Smuzhiyunoverflow when COLUMNS is large. - JeR
3*4882a593Smuzhiyun
4*4882a593Smuzhiyun(Taken from gentoo portage)
5*4882a593SmuzhiyunSigned-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
6*4882a593Smuzhiyun
7*4882a593Smuzhiyun--- a/src/ftop.c	2009-02-16 07:00:00.000000000 +0100
8*4882a593Smuzhiyun+++ b/src/ftop.c	2013-09-06 14:42:41.788852952 +0200
9*4882a593Smuzhiyun@@ -736,7 +736,7 @@
10*4882a593Smuzhiyun {
11*4882a593Smuzhiyun     size_t i, j, bytes, bar_total;
12*4882a593Smuzhiyun     char more_procs_ch, more_files_ch, expanded_ch;
13*4882a593Smuzhiyun-    char tmp_buf[80], rate_buf[80];
14*4882a593Smuzhiyun+    char tmp_buf[2048], rate_buf[2048];
15*4882a593Smuzhiyun     char *tmp_str;
16*4882a593Smuzhiyun     snapshot *s, *s_prev;
17*4882a593Smuzhiyun     file_info *tmp_file;
18