]> granicus.if.org Git - procps-ng/commit
top: Prevent buffer overflow in calibrate_fields().
authorQualys Security Advisory <qsa@qualys.com>
Thu, 1 Jan 1970 00:00:00 +0000 (00:00 +0000)
committerCraig Small <csmall@enc.com.au>
Fri, 18 May 2018 21:33:15 +0000 (07:33 +1000)
commitc424a643318abfb534a692bd86c6a5e411ed2ebb
tree5e530f8fe95952197708b01118ca002e9c61a619
parenta71ac048e6543839566fbc459d55bd4246a793b4
top: Prevent buffer overflow in calibrate_fields().

pflgsall[] can contain PFLAGSSIZ = 100 elements, each iteration of the
loop can write 3 elements to pflgsall[], and there are EU_MAXPFLGS = 58
iterations: a buffer overflow (it can be triggered via the configuration
file, for example, by filling "fieldscur" with the "sortindx" flag).
top/top.c