[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190730113529.GB7595@gondor.apana.org.au>
Date: Tue, 30 Jul 2019 21:35:29 +1000
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Chuhong Yuan <hslester96@...il.com>
Cc: Corentin Labbe <clabbe@...libre.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] crypto: tool: getstat: Fix unterminated strncpy
On Tue, Jul 30, 2019 at 04:40:18PM +0800, Chuhong Yuan wrote:
> strncpy(dest, src, strlen(src)) leads to unterminated
> dest, which is dangerous.
> Fix it by using strscpy.
>
> Signed-off-by: Chuhong Yuan <hslester96@...il.com>
> ---
> tools/crypto/getstat.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
This file no longer exists in cryptodev.
Cheers,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists