numam-dpdk/examples
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
..
bbdev_app examples: detect default build directory 2019-03-30 01:12:15 +01:00
bond examples: detect default build directory 2019-03-30 01:12:15 +01:00
bpf examples/bpf: move from test directory 2019-02-26 15:29:07 +01:00
cmdline replace snprintf with strlcpy without adding extra include 2019-04-04 22:45:54 +02:00
distributor distributor: skip building if power library not found 2019-04-17 18:09:53 +02:00
ethtool replace snprintf with strlcpy 2019-04-04 22:46:05 +02:00
eventdev_pipeline eventdev: promote adapter functions as stable 2019-04-22 13:20:33 +02:00
exception_path replace snprintf with strlcpy without adding extra include 2019-04-04 22:45:54 +02:00
fips_validation examples/fips_validation: fix CMAC test 2019-04-18 16:01:28 +02:00
flow_classify examples: detect default build directory 2019-03-30 01:12:15 +01:00
flow_filtering examples: detect default build directory 2019-03-30 01:12:15 +01:00
helloworld examples: detect default build directory 2019-03-30 01:12:15 +01:00
ip_fragmentation examples: detect default build directory 2019-03-30 01:12:15 +01:00
ip_pipeline meter: replace color definitions 2019-04-11 14:27:32 +02:00
ip_reassembly examples: detect default build directory 2019-03-30 01:12:15 +01:00
ipsec-secgw examples/ipsec-secgw: fix pool usage for security session 2019-04-23 14:44:26 +02:00
ipv4_multicast examples: detect default build directory 2019-03-30 01:12:15 +01:00
kni examples: detect default build directory 2019-03-30 01:12:15 +01:00
l2fwd examples: detect default build directory 2019-03-30 01:12:15 +01:00
l2fwd-cat examples/l2fwd-cat: fix build on FreeBSD 2019-04-17 18:10:34 +02:00
l2fwd-crypto replace snprintf with strlcpy 2019-04-04 22:46:05 +02:00
l2fwd-jobstats examples: detect default build directory 2019-03-30 01:12:15 +01:00
l2fwd-keepalive examples: detect default build directory 2019-03-30 01:12:15 +01:00
l3fwd examples/l3fwd: support separate buffer pool per port 2019-05-03 00:47:58 +02:00
l3fwd-acl examples: detect default build directory 2019-03-30 01:12:15 +01:00
l3fwd-power build: increase readability via shortcut variables 2019-04-17 18:09:52 +02:00
l3fwd-vf examples: detect default build directory 2019-03-30 01:12:15 +01:00
link_status_interrupt examples: detect default build directory 2019-03-30 01:12:15 +01:00
load_balancer examples: detect default build directory 2019-03-30 01:12:15 +01:00
multi_process examples/multi_process: fix buffer underrun 2019-05-03 01:33:57 +02:00
netmap_compat replace snprintf with strlcpy without adding extra include 2019-04-04 22:45:54 +02:00
packet_ordering examples: detect default build directory 2019-03-30 01:12:15 +01:00
performance-thread doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
ptpclient examples: detect default build directory 2019-03-30 01:12:15 +01:00
qos_meter meter: replace color definitions 2019-04-11 14:27:32 +02:00
qos_sched meter: replace color definitions 2019-04-11 14:27:32 +02:00
quota_watermark examples: detect default build directory 2019-03-30 01:12:15 +01:00
rxtx_callbacks examples: detect default build directory 2019-03-30 01:12:15 +01:00
server_node_efd examples: detect default build directory 2019-03-30 01:12:15 +01:00
service_cores examples: detect default build directory 2019-03-30 01:12:15 +01:00
skeleton examples: detect default build directory 2019-03-30 01:12:15 +01:00
tep_termination eal: promote some experimental functions as stable 2019-04-21 19:11:37 +02:00
timer examples: detect default build directory 2019-03-30 01:12:15 +01:00
vdpa build: increase readability via shortcut variables 2019-04-17 18:09:52 +02:00
vhost build: increase readability via shortcut variables 2019-04-17 18:09:52 +02:00
vhost_crypto examples: detect default build directory 2019-03-30 01:12:15 +01:00
vhost_scsi examples/vhost_scsi: fix null-check for parameter 2019-04-23 00:15:10 +02:00
vm_power_manager examples/power: fix buffer overrun 2019-05-03 01:38:46 +02:00
vmdq examples: detect default build directory 2019-03-30 01:12:15 +01:00
vmdq_dcb examples: detect default build directory 2019-03-30 01:12:15 +01:00
Makefile examples/distributor: detect high frequency cores 2019-04-02 02:22:32 +02:00
meson.build examples: install as part of ninja install 2019-05-02 23:05:01 +02:00