top: processes for specific user not displayed if sorted by mem Resolves: RHEL-16278

This commit is contained in:
Jan Rybar 2024-01-23 16:49:31 +01:00 committed by root
parent a995401f6a
commit e4a4a14349
3 changed files with 19 additions and 1 deletions

1
.procps-ng.metadata Normal file
View File

@ -0,0 +1 @@
a52952e8bc6aaab812176c00d25adc4d4e1552e2 procps-ng-3.3.17.tar.xz

View File

@ -4,7 +4,7 @@
Summary: System and process monitoring utilities
Name: procps-ng
Version: 3.3.17
Release: 13%{?dist}
Release: 14%{?dist}
License: GPL+ and GPLv2 and GPLv2+ and GPLv3+ and LGPLv2+
URL: https://sourceforge.net/projects/procps-ng/
@ -26,6 +26,7 @@ Patch8: display-sig-unsafe.patch
Patch9: ps-out-of-bonds-read.patch
Patch10: sysctl-nameonly-shows-value.patch
Patch11: cve-2023-4016.patch
Patch12: top-invisible-tasks-if-memsort.patch
BuildRequires: make
@ -168,6 +169,10 @@ ln -s %{_bindir}/pidof %{buildroot}%{_sbindir}/pidof
%files i18n -f %{name}.lang
%changelog
* Mon Jan 22 2024 Jan Rybar <jrybar@redhat.com> - 3.3.17-14
- top: processes for specific user not displayed if sorted by mem
- Resolves: RHEL-16278
* Fri Aug 11 2023 Jan Rybar <jrybar@redhat.com> - 3.3.17-13
- ps: mitigation of possible buffer overflow
- Resolves: rhbz#2228504

View File

@ -0,0 +1,12 @@
diff --git a/top/top.c b/top/top.c
index 58badaa..21fab42 100644
--- a/top/top.c
+++ b/top/top.c
@@ -5704,6 +5704,7 @@ static void keys_xtra (int ch) {
switch (ch) {
case 'M':
w->rc.sortindx = EU_MEM;
+ mkVIZrow1(w); // we need to avoid hiding tasks if scrolled too much
// xmsg = "Memory";
break;
case 'N':