> -----Original Message-----
> From: De Lara Guarch, Pablo
> Sent: Monday, January 29, 2018 9:22 AM
> To: Zhang, Roy Fan <[email protected]>
> Cc: [email protected]; Richardson, Bruce <[email protected]>; De
> Lara Guarch, Pablo <[email protected]>; [email protected]
> Subject: [PATCH v2] crypto/scheduler: fix strncpy
> 
> The coverity issue was not completely fixed, since strncpy should not be
> called with max length.
> Instead, snprintf is used as a safer option.
> 
> Coverity issue: 143431
> Fixes: d040aca67170 ("crypto/scheduler: fix strings not null terminated")
> Cc: [email protected]
> 
> Signed-off-by: Pablo de Lara <[email protected]>
> ---
> 
> v2:
> - Replaced strncpy with snprintf
 
Acked-by: Fan Zhang <[email protected]>

Reply via email to