app/testpmd: fix array bounds checks
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Tue, 10 Jan 2017 13:08:26 +0000 (14:08 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 11 Jan 2017 15:52:20 +0000 (16:52 +0100)
commitbd9e3bc20f38ad79daa2ead949db7655bbe1f182
treefc3fcc9cc374182fe5fefc0e375457f941fa49b3
parent348e470bc6be6f28fc197f6d2dc4f3cebb43e719
app/testpmd: fix array bounds checks

This commit addresses several obvious issues reported by Coverity
with array bounds checks in functions related to the flow API.

Coverity issue: 139596, 139597, 139598, 139599
Fixes: 938a184a1870 ("app/testpmd: implement basic support for flow API")

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
app/test-pmd/config.c