diff options
| author | Ajith P V <ajithpv.linux@gmail.com> | 2026-08-11 09:49:32 +0000 |
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2026-08-11 15:39:59 -0400 |
| commit | 6d5e3062ef688af0371fa5272cea3bde4c0e6138 (patch) | |
| tree | e9a663e697ea59b17c3e96a56f685a4598154f55 /scripts/objdiff | |
| parent | 2fe8aa99af5577e4fb24c599210475963cbdfb7c (diff) | |
| download | linux-next-6d5e3062ef688af0371fa5272cea3bde4c0e6138.tar.gz linux-next-6d5e3062ef688af0371fa5272cea3bde4c0e6138.zip | |
Bluetooth: bnep: refactor deprecated strcpy
The strcpy() function is deprecated across the kernel tree and
moving towards complete elimination. It provides no verification
limits against buffer overflows and does not guarantee strict boundary
restrictions [1][2].
Replace instances of strcpy() in `net/bluetooth/bnep/core.c` with the safer
strscpy() alternative. Since both target destination blocks are
statically allocated fixed-size arrays within their structure definitions,
leverage the compile time sizeof() operator to explicitly pass the
destination buffer capacities.
Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy [1]
Link: https://github.com/KSPP/linux/issues/88 [2]
Signed-off-by: Ajith P V <ajithpv.linux@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
