aboutsummaryrefslogtreecommitdiffstats
path: root/sound/synth/emux/emux_seq.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-04-27 13:00:09 +0200
committerBen Hutchings <ben@decadent.org.uk>2015-08-07 00:32:07 +0100
commit172210296cc6debd42698165f1999a384d008fa3 (patch)
treeefabd519bed5ee6269a03b5302c0ad11856d7e57 /sound/synth/emux/emux_seq.c
parent6d2cf32d106b396d29fd43a80fb6764535f7a1a3 (diff)
downloadkernel_samsung_smdk4412-172210296cc6debd42698165f1999a384d008fa3.zip
kernel_samsung_smdk4412-172210296cc6debd42698165f1999a384d008fa3.tar.gz
kernel_samsung_smdk4412-172210296cc6debd42698165f1999a384d008fa3.tar.bz2
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: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'sound/synth/emux/emux_seq.c')
0 files changed, 0 insertions, 0 deletions