[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0b78b29f-2a84-487c-a43b-f8d3fa20d935@kadam.mountain>
Date: Fri, 6 Oct 2023 09:42:41 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Ricardo Lopes <ricardoapl.dev@...il.com>
Cc: manishc@...vell.com, GR-Linux-NIC-Dev@...vell.com,
coiby.xu@...il.com, gregkh@...uxfoundation.org,
netdev@...r.kernel.org, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: qlge: Replace strncpy with strscpy
On Thu, Oct 05, 2023 at 08:14:55PM +0100, Ricardo Lopes wrote:
> Avoid read overflows and other misbehavior due to missing termination.
>
There aren't any read overflows in the current code.
> Reported by checkpatch:
>
> WARNING: Prefer strscpy, strscpy_pad, or __nonstring over strncpy
But making checkpatch happy is good and the patch is fine.
Reviewed-by: Dan Carpenter <dan.carpenter@...aro.org>
regards,
dan carpenter
Powered by blists - more mailing lists