]> git.droids-corp.org - dpdk.git/commit
distributor: fix potential overflow
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 17 Feb 2022 15:02:39 +0000 (15:02 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 27 Feb 2022 18:06:59 +0000 (19:06 +0100)
commit9699b09803b799ddc11abedffb17af059c992e9a
treeeac1f81811cbe7109125ff030470d115ec2a4ba0
parentecda2c40ac549f2ebd1e8be6bf0a96c4aba6bf36
distributor: fix potential overflow

Coverity flags the fact that the tag values used in distributor are
32-bit, which means that when we use bit-manipulation to convert a tag
match/no-match to a bit in an array, we need to typecast to a 64-bit
type before shifting past 32 bits.

Coverity issue: 375808
Fixes: 08ccf3faa6a9 ("distributor: new packet distributor library")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
lib/distributor/rte_distributor_single.c