]> granicus.if.org Git - procps-ng/commit
0124-vmstat: Check return values of localtime() and strftime().
authorQualys Security Advisory <qsa@qualys.com>
Thu, 1 Jan 1970 00:00:00 +0000 (00:00 +0000)
committerCraig Small <csmall@enc.com.au>
Sat, 23 Jun 2018 11:59:14 +0000 (21:59 +1000)
commitaca26df5017a047cb50b04f067464a89c518d91b
treef3a004cbb3df8439b20d8ce7f3b2ae9a3652a234
parentc7e17f44397607b3fdf5f2dd543ec2a1bc4bb3c3
0124-vmstat: Check return values of localtime() and strftime().

Otherwise it leads to NULL-pointer dereferences (in case of localtime()
errors) and indeterminate contents of timebuf (in case of strftime()
errors).

Signed-off-by: Craig Small <csmall@enc.com.au>
vmstat.c