]> granicus.if.org Git - procps-ng/commit
0037-proc/devname.c: Use snprintf() in link_name().
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:35:19 +0000 (21:35 +1000)
commit170397d59c973a264762cfd8e8ab622e2997e211
treec44c4cf6de6e4d6d2d12d7579ce3572b07932307
parent50b343e06867169c0b1548deb75fbd36003dcdaf
0037-proc/devname.c: Use snprintf() in link_name().

Found no problematic use case at the moment, but better safe than sorry.
Also, return an error on snprintf() or readlink() truncation.
proc/devname.c