Re: [dpdk-dev] [PATCH] test/mempool: Fix illegal pointer access in mempool test

2021-04-14 Thread Peng, ZhihongX
-Original Message- From: dev On Behalf Of Wenwu Ma Sent: Thursday, April 1, 2021 5:06 AM To: olivier.m...@6wind.com; andrew.rybche...@oktetlabs.ru; dev@dpdk.org Subject: [dpdk-dev] [PATCH] test/mempool: Fix illegal pointer access in mempool test The value of parameter private_data_size

[dpdk-dev] [PATCH] test/mempool: Fix illegal pointer access in mempool test

2021-03-31 Thread Wenwu Ma
The value of parameter private_data_size of function rte_mempool_create() called in test_mempool() should not be 0, Otherwise, the function rte_pktmbuf_priv_size() called in rte_pktmbuf_init() will cause heap-buffer-overflow. Signed-off-by: Wenwu Ma --- app/test/test_mempool.c | 3 ++- 1 file ch