app/testpmd: fix string overrun in engines listing
authorTomasz Kulasek <tomaszx.kulasek@intel.com>
Mon, 11 Apr 2016 16:03:48 +0000 (18:03 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 27 Apr 2016 15:41:47 +0000 (17:41 +0200)
commit331c617bfb5e977c79099f6f833fdcd7f628349d
tree894c3dbe59d35798edb96d1c8afbc5183a76d331
parent3e7bced6a6f29f980c4d72574bb0f4301f06e272
app/testpmd: fix string overrun in engines listing

CID 13307 (#1 of 1): Copy into fixed size buffer (STRING_OVERFLOW)
fixed_size_dest: You might overrun the 128 byte fixed-size string fwd_modes
by copying fwd_eng->fwd_mode_name without checking the length.

Fixes: 769ce6b17835 ("app/testpmd: list forwarding engines")

Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
app/test-pmd/config.c