summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-01-12 20:22:14 -0800
committerJakub Kicinski <kuba@kernel.org>2021-01-12 20:22:15 -0800
commit5527d0ea199354c798a63b50d911eeda6ee471ba (patch)
tree06a00842a100de9d64eaac60c872e98a060714db /tools
parent584c19f92754e9d590d75a94df66c47f7c4fd2cc (diff)
parent8a4465368964b4fbaf084760c94c7aabf61059fb (diff)
downloadlinux-5527d0ea199354c798a63b50d911eeda6ee471ba.tar.bz2
Merge branch 'net-smc-fix-out-of-bound-access-in-netlink-interface'
Karsten Graul says: ==================== net/smc: fix out of bound access in netlink interface Both patches fix possible out-of-bounds reads. The original code expected that snprintf() reads len-1 bytes from source and appends the terminating null, but actually snprintf() first copies len bytes and finally overwrites the last byte with a null. Fix this by using memcpy() and terminating the string afterwards. ==================== Link: https://lore.kernel.org/r/20210112162122.26832-1-kgraul@linux.ibm.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions