lkml.org 
[lkml]   [2018]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] USB: chaoskey: Use kasprintf() over strcpy()/strcat()
Date
Kees Cook <keescook@chromium.org> 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@chromium.org>

Reviewed-by: Keith Packard <keithp@keithp.com>

--
-keith
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2018-02-17 07:28    [W:0.046 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site