Re: [PATCH] USB: chaoskey: Use kasprintf() over strcpy()/strcat()

From: Keith Packard
Date: Sat Feb 17 2018 - 01:28:29 EST


Kees Cook <keescook@xxxxxxxxxxxx> writes:

> Instead of kmalloc() with manually calculated values followed by
> multiple strcpy()/strcat() calls, just fold it all into a single
> kasprintf() call.
>
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>

Reviewed-by: Keith Packard <keithp@xxxxxxxxxx>

--
-keith

Attachment: signature.asc
Description: PGP signature