mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-18 01:46:58 +00:00
`strncpy` is deprecated for use on NUL-terminated destination strings [1].
`gate_buf` should always be NUL-terminated and does not require
NUL-padding. It is used as a string arg inside an argv array given to
`run_helper()`. Due to this, let's use `strscpy` as it guarantees
NUL-terminated on the destination buffer preventing potential buffer
overreads [2].
This exact invocation was changed from `strcpy` to `strncpy` in commit
|
||
|---|---|---|
| .. | ||
| etap.h | ||
| ethertap_kern.c | ||
| ethertap_user.c | ||
| Makefile | ||
| tuntap_kern.c | ||
| tuntap_user.c | ||
| tuntap.h | ||