summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-04-27 13:00:09 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-13 05:16:56 -0700
commitb4c126c2d9445a90e262d5e993ab04354d0baa21 (patch)
treeb0ec0524c2c9edee177fafe0d0240a0bada8fb34 /include
parentb5834d888ad35b4d367e1a02f87d8bb164fb703d (diff)
downloadlwn-b4c126c2d9445a90e262d5e993ab04354d0baa21.tar.gz
lwn-b4c126c2d9445a90e262d5e993ab04354d0baa21.zip
ALSA: emu10k1: Fix card shortname string buffer overflow
commit d02260824e2cad626fb2a9d62e27006d34b6dedc upstream. Some models provide too long string for the shortname that has 32bytes including the terminator, and it results in a non-terminated string exposed to the user-space. This isn't too critical, though, as the string is stopped at the succeeding longname string. This patch fixes such entries by dropping "SB" prefix (it's enough to fit within 32 bytes, so far). Meanwhile, it also changes strcpy() with strlcpy() to make sure that this kind of problem won't happen in future, too. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions