[dpdk-dev] [PATCH] librte_eal: fix wrong args operation in eal_parse_args

2016-05-11 Thread Richardson, Bruce
> -Original Message- > From: Yang, Ziye > Sent: Wednesday, May 11, 2016 2:39 PM > To: Richardson, Bruce > Cc: dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH] librte_eal: fix wrong args operation in > eal_parse_args > > Hi Bruce, > > Could you te

[dpdk-dev] [PATCH] librte_eal: fix wrong args operation in eal_parse_args

2016-05-11 Thread Yang, Ziye
wrong args operation in eal_parse_args > -Original Message- > From: Yang, Ziye > Sent: Wednesday, May 11, 2016 12:51 PM > To: Richardson, Bruce > Cc: dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH] librte_eal: fix wrong args operation > in eal_parse_args > &

[dpdk-dev] [PATCH] librte_eal: fix wrong args operation in eal_parse_args

2016-05-11 Thread Ziye Yang
This patch is used to fix wrong operation on user input args. eal_parse_args function should not operate the args passed by the user. If the element in argv is generated by malloc function, changing it will cause memory issues when free the args. Signed-off-by: Ziye Yang --- lib/librte_eal/bsda

[dpdk-dev] [PATCH] librte_eal: fix wrong args operation in eal_parse_args

2016-05-11 Thread Bruce Richardson
On Wed, May 11, 2016 at 01:28:21PM +0800, Ziye Yang wrote: > This patch is used to fix wrong operation on user > input args. eal_parse_args function should not operate > the args passed by the user. If the element in argv > is generated by malloc function, changing it will cause > memory issues wh

[dpdk-dev] [PATCH] librte_eal: fix wrong args operation in eal_parse_args

2016-05-11 Thread Richardson, Bruce
> -Original Message- > From: Yang, Ziye > Sent: Wednesday, May 11, 2016 12:51 PM > To: Richardson, Bruce > Cc: dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH] librte_eal: fix wrong args operation in > eal_parse_args > > Hi Bruce, > > Could it be f

[dpdk-dev] [PATCH] librte_eal: fix wrong args operation in eal_parse_args

2016-05-11 Thread Yang, Ziye
Sent: Wednesday, May 11, 2016 7:25 PM To: Yang, Ziye Cc: dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH] librte_eal: fix wrong args operation in eal_parse_args On Wed, May 11, 2016 at 01:28:21PM +0800, Ziye Yang wrote: > This patch is used to fix wrong operation on user input a