test/mbuf: fix forged mbuf in clone test
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 8 Oct 2019 16:33:46 +0000 (09:33 -0700)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 16 Oct 2019 10:41:49 +0000 (12:41 +0200)
commit1636775425456d021b4ab0dd0b312edc8fbd78b8
tree6037d1e417cd84eb7984c8bf91a0147d8fde60da
parenta2b5a8722f20265896cb1ac026c716239f6313bf
test/mbuf: fix forged mbuf in clone test

The test for cloning changed mbuf would generate an mbuf whose length
and segments count were invalid.
This would cause a crash if test was run with mbuf debugging enabled.

Fixes: 4ccd2bb3a9e2 ("app/test: enhance mbuf refcnt check")
Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
app/test/test_mbuf.c