staging: android: ashmem: Replace strcpy with strscpy
Replaced strcpy call with safer strscpy call with given length. This elimates the need to manually null-terminate the given string, since strscpy will null terminate the destination anyway.: Signed-off-by:Ole Wiedemann <ole.wiedemann@fau.de> Co-developed-by:
Sebastian Scherbel <sebastian.scherbel@fau.de> Signed-off-by:
Sebastian Scherbel <sebastian.scherbel@fau.de> Acked-by:
Christian Brauner <christian.brauner@ubuntu.com> Acked-by:
Joel Fernandes (Google) <joel@joelfernandes.org> Acked-by:
Todd Kjos <tkjos@google.com> Link: https://lore.kernel.org/r/20191213131032.22579-1-ole.wiedemann@fau.deSigned-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
Please register or sign in to comment