]> granicus.if.org Git - procps-ng/commit
0065-ps/sortformat.c: Catch negative width in format_parse().
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)
commit281ac43e35e733a005e178759a4dd5d969ce7e6a
treebbae4434341e1b9ec93939ba6bfa28419e5d0394
parentaad2b13690f95ef941f608230b27016b308a1b69
0065-ps/sortformat.c: Catch negative width in format_parse().

The existing strspn() check guarantees that the string contains no '-'
but atoi() does not catch errors, especially not integer overflows.
ps/sortformat.c