numam-dpdk/examples/vm_power_manager
David Hunt 3f1fc5f2cb examples/power: fix buffer overrun
The freqs array in freq_info struct has RTE_MAX_LCORE_FREQS elements,
yet the code can attempt to look at the index at  RTE_MAX_LCORE,
which may be greater than RTE_MAX_LCORE_FREQS. Fix to limit index to
RTE_MAX_LCORE_FREQS.

Coverity issue: 337660
Fixes: d26c18c932 ("examples/vm_power: cpu frequency in host")
Cc: stable@dpdk.org

Signed-off-by: David Hunt <david.hunt@intel.com>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>
2019-05-03 01:38:46 +02:00
..
guest_cli examples: detect default build directory 2019-03-30 01:12:15 +01:00
channel_manager.c power: fix buffer overruns 2019-04-23 00:15:10 +02:00
channel_manager.h power: fix buffer overruns 2019-04-23 00:15:10 +02:00
channel_monitor.c examples/power: fix string overflow 2019-04-23 00:15:10 +02:00
channel_monitor.h examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
main.c examples/power: fix build with some disabled PMDs 2019-04-23 00:15:10 +02:00
Makefile examples: detect default build directory 2019-03-30 01:12:15 +01:00
meson.build examples/power: support meson/ninja build 2018-10-26 10:51:37 +02:00
oob_monitor_nop.c examples/vm_power: add oob monitoring functions 2018-07-20 22:53:17 +02:00
oob_monitor_x86.c examples/power: fix overflowed value 2019-04-23 00:15:10 +02:00
oob_monitor.h examples/vm_power: add oob monitoring functions 2018-07-20 22:53:17 +02:00
parse.c examples/vm_power: add core list parameter 2018-07-20 22:53:17 +02:00
parse.h examples/vm_power: add core list parameter 2018-07-20 22:53:17 +02:00
power_manager.c examples/power: fix buffer overrun 2019-05-03 01:38:46 +02:00
power_manager.h power: fix buffer overruns 2019-04-23 00:15:10 +02:00
vm_power_cli.c power: fix buffer overruns 2019-04-23 00:15:10 +02:00
vm_power_cli.h examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00