[dpdk-dev] [PATCH v1 1/1] power: check freq count before filling the freqs array

Richael Zhuang Richael.Zhuang at arm.com
Fri Jul 23 04:07:35 CEST 2021



> -----Original Message-----
> From: Thomas Monjalon <thomas at monjalon.net>
> Sent: Friday, July 23, 2021 3:43 AM
> To: Richael Zhuang <Richael.Zhuang at arm.com>
> Cc: dev at dpdk.org; David Hunt <david.hunt at intel.com>
> Subject: Re: [dpdk-dev] [PATCH v1 1/1] power: check freq count before filling
> the freqs array
> 
> 21/07/2021 11:27, Richael Zhuang:
> > The freqs array size is RTE_MAX_LCORE_FREQS. Before filling the array
> > with num_freqs elements, restrict the total num to
> > RTE_MAX_LCORE_FREQS. This fix aims to fix the coverity scan issue
> > like:
> > Overrunning array "pi->freqs" of 256 bytes by passing it to a function
> > which accesses it at byte offset 464.
> >
> > Coverity issue: 371913
> >
> > Signed-off-by: Richael Zhuang <richael.zhuang at arm.com>
> 
> Please provide "Fixes:" lines.
> 
> 
Thanks, I will add it.



More information about the dev mailing list