]> git.droids-corp.org - dpdk.git/commit
crypto/cnxk: prevent out-of-bound access in capabilities
authorGowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
Thu, 21 Apr 2022 07:58:19 +0000 (13:28 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Thu, 28 Apr 2022 10:09:35 +0000 (12:09 +0200)
commit59f8c378a131d48cbcfa2ac80134f589cff0ee65
tree9d04579496e88818cbe9932f7618f5be7d98a24b
parentc662a1f97c71b3530b19755431d07fa2218f5d47
crypto/cnxk: prevent out-of-bound access in capabilities

In a situation where crypto_caps elements are checked only for
RTE_CRYPTO_OP_TYPE_UNDEFINED until valid op defined, there is
possibility for an out of bound access. Add this array by one
element for current capabilities.

Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
Acked-by: Anoob Joseph <anoobj@marvell.com>
drivers/crypto/cnxk/cnxk_cryptodev.h