[dpdk-stable] [dpdk-dev] [PATCH v1] examples/vm_power_manager: fix buffer overrun

Pattan, Reshma reshma.pattan at intel.com
Thu Apr 18 17:14:07 CEST 2019



> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of David Hunt
> Sent: Wednesday, April 10, 2019 1:49 PM
> To: dev at dpdk.org
> Cc: Hunt, David <david.hunt at intel.com>; stable at dpdk.org
> Subject: [dpdk-dev] [PATCH v1] examples/vm_power_manager: fix buffer
> overrun
> 
> The freqs array in freq_info struct has RTE_MAX_LCORE_FREQS elements, yet
> the code can attemtp to look at the index at POWER_MANAGER_MAX_CPUS,

Couple of nit-picks,

:%s/ attempt/ attempt

> which may be greater than RTE_MAX_LCORE_FREQS. Fix to limit index to
> RTE_MAX_LCORE_FREQS.
> 
> Fixes: d26c18c93260 ("examples/vm_power: cpu frequency in host")
>      Coverity issue: 337660

Candidate for stable at dpdk.org?

Acked-by: Reshma Pattan <reshma.pattan at intel.com>

Thanks,
Reshma


More information about the stable mailing list