Hi,
I would prefer to fix both.
With best regards,
Slava
> -Original Message-
> From: David Marchand
> Sent: среда, 15 марта 2023 г. 12:05
> To: Slava Ovsiienko
> Cc: dev@dpdk.org; sta...@dpdk.org; Matan Azrad
> Subject: Re: [PATCH] net/mlx5: fix build with GCC 1
On Tue, Mar 14, 2023 at 2:00 PM Slava Ovsiienko wrote:
>
> Hi, David
>
> Thank you for the fix.
> I see the quite similar strncpy() usage in mlx5_xstats_get_names() routine.
> Does compiler complain about?
Strangely.. no.
But we could switch to strlcpy too.
What is your preferrence?
--
David M
Hi, David
Thank you for the fix.
I see the quite similar strncpy() usage in mlx5_xstats_get_names() routine.
Does compiler complain about?
With best regards,
Slava
> -Original Message-
> From: David Marchand
> Sent: четверг, 9 марта 2023 г. 11:03
> To: dev@dpdk.org
> Cc: sta...@dpdk.org
On Thu, Mar 9, 2023 at 10:03 AM David Marchand
wrote:
>
> Building with gcc 12 and ASan raises this warning:
>
> ../drivers/net/mlx5/mlx5_txpp.c: In function ‘mlx5_txpp_xstats_get_names’:
> ../drivers/net/mlx5/mlx5_txpp.c:1066:25: error: ‘strncpy’ specified bound
> 64 equals destination si
4 matches
Mail list logo