Something went wrong. Try again.
(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
mmc: core: Replace strcpy() in loop with memcpy() outside
When copying the info strings and generating a char ** list copy all the strings into the kmalloced buffer outside the loop and use strchr(str, 0) to find the next string inside the loop. Removes some strcpy() that static tools might think are unbounded. Signed-off-by: David Laight <david.laight.linux@gmail.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Author David Laight Committer Ulf Hansson Date (Sep 2, 2026, 4:00 PM UTC) Commit
Copy SHA
Parent cee9395a cee9395acd8043be0644b25c34bfa86623f2b935