Re: [dpdk-dev] [PATCH] proc-info: wrong sizeof argument in malloc function

2017-05-10 Thread Thomas Monjalon
09/05/2017 10:44, Van Haaren, Harry: > > From: Michal Jastrzebski > > > > Coverity reported that an argument for sizeof was used improperly. > > We should allocate memory for value size that pointer points to, > > instead of pointer size itself. > > > > Coverity issue: 144523, 144521 > > Fixes:

Re: [dpdk-dev] [PATCH] proc-info: wrong sizeof argument in malloc function

2017-05-09 Thread Van Haaren, Harry
> From: Kozak, KubaX > Sent: Tuesday, May 9, 2017 6:23 AM > To: dev@dpdk.org > Cc: Van Haaren, Harry ; Jain, Deepak K > ; > Jastrzebski, MichalX K ; Kozak, KubaX > > Subject: [PATCH] proc-info: wrong sizeof argument in malloc function > > From: Michal Jastrzebski > > Coverity reported that an

[dpdk-dev] [PATCH] proc-info: wrong sizeof argument in malloc function

2017-05-08 Thread Kuba Kozak
From: Michal Jastrzebski Coverity reported that an argument for sizeof was used improperly. We should allocate memory for value size that pointer points to, instead of pointer size itself. Coverity issue: 144523, 144521 Fixes: 7ac16a3660c0 ("app/proc-info: support xstats by ID and by name") S