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

2021-07-23 Thread David Hunt
Hi Richael, On 23/7/2021 3:22 AM, Richael Zhuang wrote: 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 p

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

2021-07-22 Thread 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 46