]> granicus.if.org Git - procps-ng/commit
0064-ps/sortformat.c: Double-check chars in verify_short_sort().
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:45:38 +0000 (21:45 +1000)
commitaad2b13690f95ef941f608230b27016b308a1b69
tree7d3d205b1a190719dcdc1adab936598dc9bbea03
parent7bd4f0b6d7e058197ccf4234f2a0bcc17550d0a6
0064-ps/sortformat.c: Double-check chars in verify_short_sort().

To avoid an out-of-bounds access at checkoff[tmp]. The strspn() at the
beginning of the function protects against it already, but double-check
this in case of some future change.
ps/sortformat.c