]> git.droids-corp.org - dpdk.git/commit
test: check memory allocation for CRC
authorHongbo Zheng <zhenghongbo3@huawei.com>
Mon, 19 Apr 2021 13:34:44 +0000 (21:34 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 26 Jun 2022 17:53:05 +0000 (19:53 +0200)
commit52aab95476d69abb522b4a588b664281e8464a7b
treec19856ad503697ddbbe17efcd81a69b4752f88be
parentbb947a7264da884f22b30158f07499897a3cb4fa
test: check memory allocation for CRC

The rte_zmalloc is called in test_crc_calc without null pointer
check. This patch adds null pointer checks on return value of
rte_zmalloc.

Fixes: 9c77b848b1c1 ("test: add CRC computation")
Cc: stable@dpdk.org
Signed-off-by: Hongbo Zheng <zhenghongbo3@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
app/test/test_crc.c