app/testpmd: fix copy of raw flow item
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 7 May 2018 09:50:44 +0000 (17:50 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 9 May 2018 13:56:00 +0000 (15:56 +0200)
commit67af7ecc52ec0abdec3e9d5b35dcd4dc78b595ce
tree85f43289c832be8336a697fcc37200dd13184798
parent0256386dc43ce0f27f4c9d6bfa58c534aaf997e2
app/testpmd: fix copy of raw flow item

When calculate memory size of an RTE_FLOW_ITEM_TYPE_RAW 's mask
mask->length is not the real size of binary pattern, it should take
spec->length, or memory size will be over counted (0xffff) and invalid
memory be access during following memcpy.

Fixes: d0ad8648b1c5 ("app/testpmd: fix RSS flow action configuration")
Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
app/test-pmd/config.c