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
..
2019-02-26 15:29:27 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 21:32:53 +01:00
2022-02-08 14:19:40 +01:00
2019-05-24 13:34:46 +02:00
2022-02-08 14:19:40 +01:00
2019-02-26 15:29:27 +01:00
2019-03-27 23:10:57 +01:00
2021-10-26 19:59:26 +02:00
2021-10-26 19:59:26 +02:00
2022-02-08 14:19:40 +01:00
2020-02-13 14:43:56 +01:00
2022-02-08 14:19:40 +01:00
2021-11-16 17:57:09 +01:00
2022-01-11 12:16:53 +01:00
2021-11-10 11:42:34 +01:00
2020-06-16 14:34:39 +02:00
2021-10-26 19:59:26 +02:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2019-11-28 03:12:55 +01:00
2021-07-02 19:03:03 +02:00
2019-02-26 15:29:27 +01:00
2020-02-05 14:37:41 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2021-04-21 00:44:24 +02:00
2020-02-05 14:37:41 +01:00
2020-02-05 14:37:41 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2021-09-27 18:33:45 +02:00
2020-10-20 13:17:08 +02:00
2022-01-11 12:16:53 +01:00
2020-10-13 17:57:52 +02:00
2022-02-08 14:19:40 +01:00
2021-10-20 15:33:16 +02:00
2021-07-20 22:27:00 +02:00
2020-01-15 15:01:55 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2021-10-16 16:24:43 +02:00
2020-04-19 22:45:40 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2020-01-15 15:01:55 +01:00
2020-01-15 15:01:55 +01:00
2021-01-19 18:05:45 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-07-05 15:28:14 +02:00
2020-01-15 16:45:04 +01:00
2019-04-02 16:50:24 +02:00
2019-10-23 16:57:06 +02:00
2021-11-04 19:46:27 +01:00
2022-01-21 11:55:12 +01:00
2022-02-08 14:19:40 +01:00
2022-01-21 11:55:12 +01:00
2020-10-14 22:24:41 +02:00
2019-10-09 11:50:12 +02:00
2021-09-08 16:55:20 +02:00
2022-02-08 14:19:40 +01:00
2019-02-26 15:29:27 +01:00
2019-07-05 15:28:14 +02:00
2021-11-04 19:46:27 +01:00
2022-02-08 14:19:40 +01:00
2022-01-12 15:36:32 +01:00
2021-06-03 18:08:57 +02:00
2022-02-08 14:19:40 +01:00
2021-10-25 09:42:38 +02:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2021-10-17 20:49:58 +02:00
2021-10-17 20:49:58 +02:00
2022-01-20 14:05:47 +01:00
2022-02-08 21:32:53 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2021-10-22 18:15:38 +02:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2019-07-06 10:32:34 +02:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +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
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2020-02-05 14:37:41 +01:00
2021-10-19 17:15:10 +02:00
2022-02-08 14:19:40 +01:00
2020-10-24 11:11:46 +02:00
2021-10-19 17:15:10 +02:00
2021-10-21 09:42:40 +02:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-01-11 12:16:53 +01:00
2021-10-26 19:59:26 +02:00
2022-02-08 14:19:40 +01:00
2021-10-22 18:15:38 +02:00
2021-10-22 18:15:38 +02:00
2021-11-16 17:57:09 +01:00
2022-02-08 14:19:40 +01:00
2022-01-11 12:16:53 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 21:32:53 +01:00
2022-02-08 14:19:40 +01:00
2022-02-11 08:50:13 +01:00
2021-07-30 19:10:58 +02:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01: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
2022-02-02 22:06:14 +01:00
2022-01-11 12:16:53 +01:00
2022-01-11 12:16:53 +01:00
2021-11-16 17:57:09 +01:00
2022-01-11 12:16:53 +01:00
2022-02-08 14:19:40 +01:00
2022-01-11 12:16:53 +01:00
2021-10-26 19:59:26 +02:00
2019-02-26 15:29:27 +01:00
2020-10-20 13:17:08 +02:00
2021-04-14 21:59:47 +02:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2020-10-16 22:26:41 +02:00
2020-10-16 22:26:41 +02:00
2022-01-11 12:16:53 +01:00
2020-10-19 22:15:44 +02:00
2021-07-09 16:04:46 +02:00
2021-05-20 23:10:22 +02:00
2019-06-28 15:23:55 +02:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-01-11 12:16:53 +01:00
2021-05-19 09:23:00 +02:00
2019-02-26 15:29:27 +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
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2020-04-21 12:52:55 +02:00
2020-04-21 11:34:09 +02:00
2020-11-15 16:45:48 +01:00
2020-07-03 12:36:04 +02:00
2021-11-17 11:07:06 +01:00
2020-04-21 12:52:55 +02:00
2020-10-29 14:13:31 +01:00
2020-07-03 12:05:25 +02:00
2022-02-08 14:19:40 +01:00
2020-10-29 14:13:31 +01:00
2020-10-29 14:13:31 +01:00
2021-11-17 11:07:06 +01:00
2020-10-29 14:13:31 +01:00
2021-11-16 16:28:53 +01:00
2022-02-08 14:19:40 +01:00
2022-01-11 12:16:53 +01:00
2021-10-12 21:07:30 +02:00
2021-07-30 19:06:35 +02:00
2021-11-17 11:07:06 +01:00
2021-10-19 17:15:10 +02:00
2019-02-26 15:29:27 +01:00
2022-02-08 14:19:40 +01:00
2019-02-26 15:29:27 +01:00
2022-02-08 14:19:40 +01:00
2020-10-19 22:15:44 +02:00
2022-02-08 14:19:40 +01:00
2019-02-26 15:29:27 +01:00
2022-02-08 14:19:40 +01:00
2019-02-26 15:29:27 +01:00
2022-02-08 14:19:40 +01:00
2020-10-19 22:15:44 +02:00
2022-02-08 14:19:40 +01:00
2020-10-19 22:15:44 +02:00
2019-10-09 10:22:24 +02:00
2022-02-08 14:19:40 +01:00
2021-07-06 13:28:35 +02:00
2021-11-16 13:01:52 +01:00
2022-01-11 12:16:53 +01:00
2021-07-30 19:04:34 +02:00
2019-03-12 17:31:22 +01:00
2021-05-19 11:02:45 +02:00
2022-02-08 14:19:40 +01:00
2021-11-17 11:07:06 +01:00
2021-04-14 16:12:44 +02:00
2020-07-05 21:34:21 +02:00
2022-02-08 14:19:40 +01:00
2020-04-23 15:40:03 +02:00
2021-11-24 15:11:42 +01:00
2019-02-26 15:29:27 +01:00
2020-10-13 16:35:48 +02: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
2019-05-24 13:34:45 +02:00