• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/ftop/0001-overflow.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
 
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;
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.