Re: [dpdk-dev] [PATCH] pipeline: fix build with glibc < 2.26

2020-10-02 Thread David Marchand
On Fri, Oct 2, 2020 at 12:38 PM Dumitrescu, Cristian wrote: > > -Original Message- > > From: David Marchand > > Sent: Friday, October 2, 2020 9:29 AM > > To: dev@dpdk.org > > Cc: Dumitrescu, Cristian > > Subject: [PATCH] pipeline: fix build with glibc < 2.26 > > > > reallocarray has been

Re: [dpdk-dev] [PATCH] pipeline: fix build with glibc < 2.26

2020-10-02 Thread Dumitrescu, Cristian
> -Original Message- > From: David Marchand > Sent: Friday, October 2, 2020 9:29 AM > To: dev@dpdk.org > Cc: Dumitrescu, Cristian > Subject: [PATCH] pipeline: fix build with glibc < 2.26 > > reallocarray has been introduced in glibc 2.26 but we still support > glibc >= 2.7. > Simply re

[dpdk-dev] [PATCH] pipeline: fix build with glibc < 2.26

2020-10-02 Thread David Marchand
reallocarray has been introduced in glibc 2.26 but we still support glibc >= 2.7. Simply replace with realloc, as the considered sizes are unlikely to overflow. """ The reallocarray() function changes the size of the memory block pointed to by ptr to be large enough for an array of nmemb elements,