Re: [dpdk-dev] [PATCH v2 1/4] regex/mlx5: fix size of setup constants

2021-07-22 Thread Thomas Monjalon
01/07/2021 08:39, Michael Baum: > The constant representing the size of the metadata is defined as a > unsigned int variable with 32-bit. > Similarly the constant representing the maximal output is also defined > as a unsigned int variable with 32-bit. > > There is potentially overflowing expressi

[dpdk-dev] [PATCH v2 1/4] regex/mlx5: fix size of setup constants

2021-06-30 Thread Michael Baum
The constant representing the size of the metadata is defined as a unsigned int variable with 32-bit. Similarly the constant representing the maximal output is also defined as a unsigned int variable with 32-bit. There is potentially overflowing expression when those constants are evaluated using