]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: ice1712: replace strcpy() with strlcpy()
authorJoey Pabalinas <joeypabalinas@gmail.com>
Thu, 1 Mar 2018 14:17:07 +0000 (04:17 -1000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 1 Mar 2018 15:13:13 +0000 (16:13 +0100)
commit338e17d3f58e9868a12af7deb1edcfb40bd588b2
tree2a0ec4763de4fc80103c49c0ed7c8aa80e7e0f37
parentdd5f313be0d4d7a46f0e82c42aed4fbc784699ea
ALSA: ice1712: replace strcpy() with strlcpy()

Replace unsafe usages of strcpy() to copy the name
argument into the sid.name buffer with strlcpy()
to guard against possible buffer overflows.

Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ice1712/juli.c
sound/pci/ice1712/quartet.c