]> granicus.if.org Git - procps-ng/commit
top: prevent buffer overflow potential in all routines
authorJim Warner <james.warner@comcast.net>
Sat, 2 Jun 2018 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Sat, 9 Jun 2018 11:35:20 +0000 (21:35 +1000)
commit085351a0ee9e7abcaca499dbc1d6444cfa9c9da9
treeb6f2a42664e61d7e57d09ecc51776809a5b11a0c
parentffee26c3703dd76bca7a8d445445f4259856140a
top: prevent buffer overflow potential in all routines

Whereas an original patch (referenced below) addressed
some symptoms related to manually edited config files,
this solution deals with root causes. And it goes much
beyond any single top field by protecting all of top's
fields. Henceforth, a duplicated field is not allowed.

Reference(s):
. original qualys patch
0114-top-Prevent-buffer-overflow-in-calibrate_fields.patch

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c