[dpdk-dev] [PATCH] examples/tep_term: fix out-of-bounds access

2016-07-11 Thread Thomas Monjalon
2016-07-05 14:15, Beilei Xing: > Coverity reported lots of out-of-bounds in function > vxlan_link, these issues should happen when index > port_id evaluates to 2, cause size of arrays is > 2 in structure. > Fix this issue by modifying judgement condition, make > sure port_id is less than 2. > > Co

[dpdk-dev] [PATCH] examples/tep_term: fix out-of-bounds access

2016-07-05 Thread Beilei Xing
Coverity reported lots of out-of-bounds in function vxlan_link, these issues should happen when index port_id evaluates to 2, cause size of arrays is 2 in structure. Fix this issue by modifying judgement condition, make sure port_id is less than 2. Coverity issue: 107121, 107122, 107123, 107124, 1