]> git.droids-corp.org - dpdk.git/commit
examples/l2fwd-crypto: fix port mask overflow
authorBrian Dooley <brian.dooley@intel.com>
Mon, 21 Feb 2022 18:06:58 +0000 (18:06 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 23 Feb 2022 10:50:02 +0000 (11:50 +0100)
commitaaf4ac404362752e9c8effa4641bb480187d04ec
tree73af2a1aad8943fd5f6079e41dc3d803369a4b3b
parent5816147901c9fae043f14ee34dbdd73f5c2449bd
examples/l2fwd-crypto: fix port mask overflow

Coverity flags an issue with 32-bit value. If max ethports value is
configured with a value larger than 32 there will be an issue.
Coverity issue: 375863 Unintentional integer overflow

Fixes: 387259bd6c67 ("examples/l2fwd-crypto: add sample application")
Cc: stable@dpdk.org
Signed-off-by: Brian Dooley <brian.dooley@intel.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
examples/l2fwd-crypto/main.c