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

Thomas Monjalon thomas at monjalon.net
Wed May 10 18:50:39 CEST 2017


09/05/2017 10:44, Van Haaren, Harry:
> > From: Michal Jastrzebski <michalx.k.jastrzebski at intel.com>
> > 
> > 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")
> > 
> > Signed-off-by: Michal Jastrzebski <michalx.k.jastrzebski at intel.com>
> 
> 
> Please consider merging these in 17.05, this is an important fix for 32 bit systems.
> 
> Acked-by: Harry van Haaren <harry.van.haaren at intel.com>

Applied, thanks



More information about the dev mailing list