diff options
author | Zach van Rijn <me@zv.io> | 2021-10-07 12:27:50 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2021-10-07 12:27:50 -0500 |
commit | ff476413e30a6cf477364eeed12ed06540a8b436 (patch) | |
tree | 09475576abd09bc9a9f9c0ed6c2787aeb31ec27b /legacy/busybox/top-buffer-overflow.patch | |
parent | 461d0effc689a5b2e564b0ed1e47e268264de65c (diff) | |
download | packages-ff476413e30a6cf477364eeed12ed06540a8b436.tar.gz packages-ff476413e30a6cf477364eeed12ed06540a8b436.tar.bz2 packages-ff476413e30a6cf477364eeed12ed06540a8b436.tar.xz packages-ff476413e30a6cf477364eeed12ed06540a8b436.zip |
legacy/*: cleanup packages that can 'definitely go'
Diffstat (limited to 'legacy/busybox/top-buffer-overflow.patch')
-rw-r--r-- | legacy/busybox/top-buffer-overflow.patch | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/legacy/busybox/top-buffer-overflow.patch b/legacy/busybox/top-buffer-overflow.patch deleted file mode 100644 index 14b23c648..000000000 --- a/legacy/busybox/top-buffer-overflow.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- busybox-1.27.0.orig/procps/top.c -+++ busybox-1.27.0/procps/top.c -@@ -694,10 +694,14 @@ - CALC_STAT(pcpu, (s->pcpu*pcpu_scale + pcpu_half) >> pcpu_shift); - #endif - -- if (s->vsz >= 100000) -- sprintf(vsz_str_buf, "%6ldm", s->vsz/1024); -+ if ((s->vsz / (1024 * 1024)) >= 100000) -+ snprintf(vsz_str_buf, sizeof(vsz_str_buf), "%6ldt", s->vsz/(1024 * 1024 * 1024)); -+ else if ((s->vsz / 1024) >= 100000) -+ snprintf(vsz_str_buf, sizeof(vsz_str_buf), "%6ldg", s->vsz/(1024 * 1024)); -+ else if (s->vsz >= 100000) -+ snprintf(vsz_str_buf, sizeof(vsz_str_buf), "%6ldm", s->vsz/1024); - else -- sprintf(vsz_str_buf, "%7lu", s->vsz); -+ snprintf(vsz_str_buf, sizeof(vsz_str_buf), "%7lu", s->vsz); - /* PID PPID USER STAT VSZ %VSZ [%CPU] COMMAND */ - col = snprintf(line_buf, scr_width, - "\n" "%5u%6u %-8.8s %s%s" FMT |