diff options
| author | Zubin Mithra <zsm@chromium.org> | 2019-04-04 14:33:55 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-27 09:33:55 +0200 |
| commit | ae9981cee7b321ae018a345beb0ed0eb09a0fc18 (patch) | |
| tree | 5fdcf08014e1f1d73b8bfb8c9747ee5f890eb115 /include/linux/stackprotector.h | |
| parent | 3efb978c3c73f66ed40157de2f45f7fda7bda059 (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>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
