]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
ipc: linux: enforce IFNAMSIZ limit
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 4 Aug 2023 14:04:36 +0000 (16:04 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 4 Aug 2023 14:04:36 +0000 (16:04 +0200)
commit13f4ac4cb74b5a833fa7f825ba785b1e5774e84f
tree198559247d53267080d051a94797f1307c1ca1b0
parent729242a11466934f47690ddaf9a3465983b859e5
ipc: linux: enforce IFNAMSIZ limit

libmnl doesn't check lengths, so do our own checking before copying the
interface name to the netlink buffer.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/ipc-linux.h