]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: seq: Fix OOB-reads from strlcpy
authorZubin Mithra <zsm@chromium.org>
Thu, 4 Apr 2019 21:33:55 +0000 (14:33 -0700)
committerTakashi Iwai <tiwai@suse.de>
Fri, 5 Apr 2019 12:33:01 +0000 (14:33 +0200)
commit3cbe348788d43d03ee0ea4a3476d97643d77ff96
treeae0bc69b8f9eb6943471ed99b0b97752f1d856a1
parente0b7b19706d5ae8f519a0b8b29f97ff6f5003a7a
ALSA: seq: Fix OOB-reads from strlcpy

When ioctl calls are made with non-null-terminated userspace strings,
strlcpy causes an OOB-read from within strlen. Fix by changing to use
strscpy instead.

Signed-off-by: Zubin Mithra <zsm@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_clientmgr.c