Re: [RFC 8/8] ip_frag: fix gcc-12 warnings

2022-06-14 Thread Thomas Monjalon
09/06/2022 09:09, Morten Brørup: > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Wednesday, 8 June 2022 17.27 > > > > On Wed, 8 Jun 2022 09:19:20 +0100 > > Konstantin Ananyev wrote: > > > > > 07/06/2022 18:17, Stephen Hemminger пишет: > > > > The function rte_memcpy can

RE: [RFC 8/8] ip_frag: fix gcc-12 warnings

2022-06-09 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Wednesday, 8 June 2022 17.27 > > On Wed, 8 Jun 2022 09:19:20 +0100 > Konstantin Ananyev wrote: > > > 07/06/2022 18:17, Stephen Hemminger пишет: > > > The function rte_memcpy can derference past source buffer which > > > will c

Re: [RFC 8/8] ip_frag: fix gcc-12 warnings

2022-06-08 Thread Stephen Hemminger
On Wed, 8 Jun 2022 09:19:20 +0100 Konstantin Ananyev wrote: > 07/06/2022 18:17, Stephen Hemminger пишет: > > The function rte_memcpy can derference past source buffer which > > will cause array out of bounds warnings. But there is no good reason > > to use rte_memcpy instead of memcpy in this cod

Re: [RFC 8/8] ip_frag: fix gcc-12 warnings

2022-06-08 Thread Konstantin Ananyev
07/06/2022 18:17, Stephen Hemminger пишет: The function rte_memcpy can derference past source buffer which will cause array out of bounds warnings. But there is no good reason to use rte_memcpy instead of memcpy in this code. Memcpy is just as fast for these small inputs, and compiler will optimi

[RFC 8/8] ip_frag: fix gcc-12 warnings

2022-06-07 Thread Stephen Hemminger
The function rte_memcpy can derference past source buffer which will cause array out of bounds warnings. But there is no good reason to use rte_memcpy instead of memcpy in this code. Memcpy is just as fast for these small inputs, and compiler will optimize. Signed-off-by: Stephen Hemminger --- l