forked from luck/tmp_suning_uos_patched
a03241a22a
commit 217bfbb8b0bfa24619b11ab75c135fec99b99b20 upstream. snd_seq_oss_synth_make_info() didn't check the error code from snd_seq_oss_midi_make_info(), and this leads to the call of strlcpy() with the uninitialized string as the source, which may lead to the access over the limit. Add the proper error check for avoiding the failure. Reported-by: syzbot+e42504ff21cff05a595f@syzkaller.appspotmail.com Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20210115093428.15882-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
Makefile | ||
seq_oss_device.h | ||
seq_oss_event.c | ||
seq_oss_event.h | ||
seq_oss_init.c | ||
seq_oss_ioctl.c | ||
seq_oss_midi.c | ||
seq_oss_midi.h | ||
seq_oss_readq.c | ||
seq_oss_readq.h | ||
seq_oss_rw.c | ||
seq_oss_synth.c | ||
seq_oss_synth.h | ||
seq_oss_timer.c | ||
seq_oss_timer.h | ||
seq_oss_writeq.c | ||
seq_oss_writeq.h | ||
seq_oss.c |