]> granicus.if.org Git - procps-ng/commit
0101-top: Check width and col.
authorQualys Security Advisory <qsa@qualys.com>
Thu, 1 Jan 1970 00:00:00 +0000 (00:00 +0000)
committerCraig Small <csmall@enc.com.au>
Sat, 9 Jun 2018 11:35:19 +0000 (21:35 +1000)
commit9cb8bee6a1330490ecd6bf726552e112c21bb053
treef056a132a3a3d8498b6267e954c0398acdf4aa4e
parent766e31a2c32e69778c4970ecc272dcd6f78a64b5
0101-top: Check width and col.

Otherwise they may lead to out-of-bounds writes (snprintf() returns the
number of characters which would have been written if enough space had
been available).

Also, make sure buf is null-terminated after COLPLUSCH has been written.
top/top.c