]> granicus.if.org Git - procps-ng/commit
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>
Fri, 18 May 2018 21:32:21 +0000 (07:32 +1000)
commit9f59bd5c52c8ff6f907c62afa7fdff3d3bf378a3
treecd7bd6a71c4f7f0e0daf6b7fec1a39f18dab864e
parent59666e62559e33b16ba9c0f4442019c353c9f2b0
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