diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-04-27 14:00:09 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-27 14:00:09 +0300 |
commit | d02260824e2cad626fb2a9d62e27006d34b6dedc (patch) | |
tree | 1d2ba45a6e1e871394b8f2035eece063f38e0a73 /sound/synth/emux | |
parent | 7290006d8c0900c56d8c58428134f02c35109d17 (diff) | |
download | linux-d02260824e2cad626fb2a9d62e27006d34b6dedc.tar.xz |
ALSA: emu10k1: Fix card shortname string buffer overflow
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.
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/synth/emux')
0 files changed, 0 insertions, 0 deletions