]> granicus.if.org Git - procps-ng/commit
0020-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>
Sat, 23 Jun 2018 11:59:14 +0000 (21:59 +1000)
commit73008f26ea38fa2a4c25a2d7fbbd2807ead48fba
tree7654ad1a934e47754c292c4c1dba4223cb852afa
parent4abe4a51a066af43e8ac3439f4acdbf0cc687a36
0020-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