[PATCH v2] cryptodev: avoid algorithm strings null pointers

2023-06-08 Thread xixin.liu
can solve the segfault problem. Signed-off-by: xixin.liu --- lib/cryptodev/rte_cryptodev.c | 8 1 file changed, 8 insertions(+) diff --git a/lib/cryptodev/rte_cryptodev.c b/lib/cryptodev/rte_cryptodev.c index a96114b2da..41c23fc596 100644 --- a/lib/cryptodev/rte_cryptodev.c +++ b/lib

[PATCH] cryptodev: avoid algorithm strings null pointers

2023-06-08 Thread xixin.liu
The crypto algorithm strings identifiers that are Continuous may be null, so there is needed to add null judgment. When testing with dpdk-test-crypto-perf and passing in the parameter --auth-algo sm3-hmac, The program caused a segfault due to a null pointer passed in by strcmp. Adding this patch ca