d37462e56c
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
Fixes:
|
||
---|---|---|
.. | ||
guest_channel.c | ||
guest_channel.h | ||
meson.build | ||
power_acpi_cpufreq.c | ||
power_acpi_cpufreq.h | ||
power_common.c | ||
power_common.h | ||
power_cppc_cpufreq.c | ||
power_cppc_cpufreq.h | ||
power_kvm_vm.c | ||
power_kvm_vm.h | ||
power_pstate_cpufreq.c | ||
power_pstate_cpufreq.h | ||
rte_power_empty_poll.c | ||
rte_power_empty_poll.h | ||
rte_power_guest_channel.h | ||
rte_power_pmd_mgmt.c | ||
rte_power_pmd_mgmt.h | ||
rte_power.c | ||
rte_power.h | ||
version.map |