Skip to content

n64cart: use strscpy in n64cart_probe#843

Open
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1096126=>linus-master
Open

n64cart: use strscpy in n64cart_probe#843
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1096126=>linus-master

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci Bot commented May 17, 2026

Pull request for series with
subject: n64cart: use strscpy in n64cart_probe
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1096126

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.

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 17, 2026

Upstream branch: 70eda68
series: https://patchwork.kernel.org/project/linux-block/list/?series=1096126
version: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant