Re: [dpdk-dev] [PATCH] eal: copy optarg when parsing mempool ops name

2018-05-13 Thread Thomas Monjalon
07/05/2018 07:42, santosh: > > On Friday 04 May 2018 04:01 PM, Andrew Rybchenko wrote: > > From: Ivan Malov > > > > The code aimed to pick and remember the value of > > mempool ops name from EAL command line arguments does not > > copy the string and remembers the pointer provided > > by getopt_l

Re: [dpdk-dev] [PATCH] eal: copy optarg when parsing mempool ops name

2018-05-06 Thread santosh
On Friday 04 May 2018 04:01 PM, Andrew Rybchenko wrote: > From: Ivan Malov > > The code aimed to pick and remember the value of > mempool ops name from EAL command line arguments does not > copy the string and remembers the pointer provided > by getopt_long() directly. The latter could be clobber

[dpdk-dev] [PATCH] eal: copy optarg when parsing mempool ops name

2018-05-04 Thread Andrew Rybchenko
From: Ivan Malov The code aimed to pick and remember the value of mempool ops name from EAL command line arguments does not copy the string and remembers the pointer provided by getopt_long() directly. The latter could be clobbered later and result in reading wrong mbuf pool ops name by rte_mempo