David Marchand 985571b6b4 test/mbuf: fix mbuf data content check
When allocating a mbuf, its data content is most of the time zero'd but
nothing ensures this. This is especially wrong when building with
RTE_MALLOC_DEBUG, where data is poisoned to 0x6b on free.

This test reserves MBUF_TEST_DATA_LEN2 bytes in the mbuf data segment,
and sets this data to 0xcc.
Calling strlen(), the test may try to read more than MBUF_TEST_DATA_LEN2
which has been noticed when memory had been poisoned.

The mbuf data content is checked right after, so we can simply remove
strlen().

Fixes: 7b295dceea07 ("test/mbuf: add unit test cases")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2022-02-11 08:50:13 +01:00
..
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2019-02-26 15:29:27 +01:00
2021-11-10 11:42:34 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2022-02-08 14:19:40 +01:00
2021-10-25 09:42:38 +02:00
2021-10-22 18:15:38 +02:00
2019-07-06 10:32:34 +02:00
2022-02-08 14:19:40 +01:00
2020-02-05 14:37:41 +01:00
2022-02-08 14:19:40 +01:00
2021-10-26 19:59:26 +02:00
2019-02-26 15:29:27 +01:00
2020-10-16 22:26:41 +02:00
2021-05-20 23:10:22 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2022-02-08 14:19:40 +01:00
2021-09-28 08:46:03 +02:00
2021-10-22 18:15:38 +02:00