summaryrefslogtreecommitdiff
path: root/Documentation/userspace-api/media/cec/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-04-28 19:11:05 +0200
committerWei Liu <wei.liu@kernel.org>2026-04-29 22:15:31 +0000
commit3f8c8497b4fc249e27cb335c627114d8412e584d (patch)
tree75245e32705b54fb8396d9d7b15144b6679d8e2f /Documentation/userspace-api/media/cec/git@git.tavy.me:linux.git
parent3fcf923302a8f5c0dc3af3d2ca2657cb5fae4297 (diff)
hv: utils: replace deprecated strcpy with strscpy in kvp_register
strcpy() has been deprecated [1] because it performs no bounds checking on the destination buffer, which can lead to buffer overflows. While the current code works correctly, replace strcpy() with the safer strscpy() to follow secure coding best practices. Use ->body.kvp_register.version directly as the destination buffer and remove the local variable. [1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'Documentation/userspace-api/media/cec/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions