]> granicus.if.org Git - procps-ng/commit
pidof: Prevent integer overflows with grow_size().
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:32:21 +0000 (07:32 +1000)
commit6df9ffb3419abcab750ee2be0cde631e3df091b1
treebe21b0a5ca2b33154a05b91821de88da07e06e8b
parentab8b3881a0b568edd137d4c0b51006ade04e93a0
pidof: Prevent integer overflows with grow_size().

Note: unlike "size" and "omit_size", "path_alloc_size" is not multiplied
by "sizeof(struct el)" but the checks in grow_size() allow for a roughly
100MB path_alloc_size, which should be more than enough for readlink().
pidof.c