diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-process/ftop/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-process/ftop/files')
-rw-r--r-- | sys-process/ftop/files/ftop-1.0-overflow.patch | 14 | ||||
-rw-r--r-- | sys-process/ftop/files/ftop-1.0-tinfo.patch | 10 |
2 files changed, 24 insertions, 0 deletions
diff --git a/sys-process/ftop/files/ftop-1.0-overflow.patch b/sys-process/ftop/files/ftop-1.0-overflow.patch new file mode 100644 index 000000000000..f6503fcdbc19 --- /dev/null +++ b/sys-process/ftop/files/ftop-1.0-overflow.patch @@ -0,0 +1,14 @@ +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; diff --git a/sys-process/ftop/files/ftop-1.0-tinfo.patch b/sys-process/ftop/files/ftop-1.0-tinfo.patch new file mode 100644 index 000000000000..cdbc30efa48e --- /dev/null +++ b/sys-process/ftop/files/ftop-1.0-tinfo.patch @@ -0,0 +1,10 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -15,6 +15,7 @@ + + # Checks for libraries. + AC_CHECK_LIB([curses], [initscr]) ++AC_SEARCH_LIBS(stdscr,tinfo) + + # Checks for header files. + AC_HEADER_STDC |