The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / ftop / 0001-overflow.patch
1 Set tmp_buf and rate_buf to something ridiculously high to fix a buffer
2 overflow when COLUMNS is large. - JeR
3
4 (Taken from gentoo portage)
5 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
6
7 --- a/src/ftop.c        2009-02-16 07:00:00.000000000 +0100
8 +++ b/src/ftop.c        2013-09-06 14:42:41.788852952 +0200
9 @@ -736,7 +736,7 @@
10  {
11      size_t i, j, bytes, bar_total;
12      char more_procs_ch, more_files_ch, expanded_ch;
13 -    char tmp_buf[80], rate_buf[80];
14 +    char tmp_buf[2048], rate_buf[2048];
15      char *tmp_str;
16      snapshot *s, *s_prev;
17      file_info *tmp_file;