commit | 73b50a56e51edcd78ef7602afe75083d640548e8 | [log] [tgz] |
---|---|---|
author | Zubin Mithra <zsm@chromium.org> | Thu Apr 04 14:33:55 2019 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Apr 17 08:38:48 2019 +0200 |
tree | 694519d8710045330ef793d04e3ad54929c76e5c | |
parent | d4b4aeea5506349a68adc9d2c372c8fa2416d790 [diff] |
ALSA: seq: Fix OOB-reads from strlcpy commit 212ac181c158c09038c474ba68068be49caecebb upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>