mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 16:02:57 +00:00
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 <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Cc: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>