]> granicus.if.org Git - procps-ng/commit
top: fix potential SEGV when no tasks were displayable
authorJim Warner <james.warner@comcast.net>
Wed, 9 Sep 2020 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Sun, 13 Sep 2020 00:00:49 +0000 (10:00 +1000)
commitd3203d99dd7f4508447ea3b4b056a9d134229d10
treef4a8dffd1528620da99a523ffee0274fe7ac4a3f
parent08d53ae3e6f099e72da8eaff2d7ba1e59501722c
top: fix potential SEGV when no tasks were displayable

This patch fixes a nearly decade old bug discovered by
Frederik Deweerdt. His merge request shown below would
be an adequate solution except for iterative overhead.

This alternate patch will represent substantially less
overhead for an admittedly extremely rare possibility.

Reference(s):
https://gitlab.com/procps-ng/procps/-/merge_requests/114

And-thanks-to: Frederik Deweerdt <fdeweerdt@fastly.com>
Signed-off-by: Jim Warner <james.warner@comcast.net>
NEWS
top/top.c