[CRIU] [PATCH] restore: avoid an unterminated string

Cyrill Gorcunov gorcunov at gmail.com
Thu Aug 23 15:03:32 MSK 2018


On Thu, Aug 23, 2018 at 02:09:49PM +0300, Andrei Vagin wrote:
> >>>     CID 164715:    (BUFFER_SIZE_WARNING)
> >>>     Calling strncpy with a maximum size argument of 16 bytes on
> 	destination array "thread_args[i].comm" of size 16 bytes might
> 	leave the destination string unterminated.
> 3473    strncpy(thread_args[i].comm, core->tc->comm, TASK_COMM_LEN);
> 
> Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
Acked-by: Cyrill Gorcunov <gorcunov at gmail.com>


More information about the CRIU mailing list