Thread (15 messages) flat view 15 messages, 3 authors, 2021-07-22

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

From: Matan Azrad <hidden>
Date: 2021-06-07 07:28:33


From: Michael Baum
Sent: Tuesday, June 1, 2021 10:11 AM
To: dev@dpdk.org
Cc: Matan Azrad <redacted>; Raslan Darawsheh
[off-list ref]; Slava Ovsiienko [off-list ref];
stable@dpdk.org
Subject: [PATCH 1/4] regex/mlx5: fix size of setup constants

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 32-bit arithmetic, and then used in a context that expects an
expression of type size_t (64 bits, unsigned).

Change the size of the above constants to 64-bit.

Fixes: 30d604bb1504 ("regex/mlx5: fix type of setup constants")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <redacted>
Acked-by: Matan Azrad <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help