numam-dpdk/drivers/compress
Michael Baum c87bc83a33 compress/mlx5: fix overflow in queue size
The mlx5_compress_qp_setup function makes shifting to the numeric
constant 1, then sends it as a parameter to rte_calloc function.

The rte_calloc function expects to get size_t (might be 64 bit) and
instead gets a 32-bit variable, because the numeric constant size is a
32-bit.
In case the shift is greater than 32 bit and it 64-system, the variable
will lose its value even though the function can get 64-bit argument.

Change the size of the numeric constant 1 to size_t.

Fixes: 8619fcd516 ("compress/mlx5: support queue pair operations")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2021-07-22 14:47:32 +02:00
..
isal compress/isal: support Arm platform 2021-07-20 10:32:05 +02:00
mlx5 compress/mlx5: fix overflow in queue size 2021-07-22 14:47:32 +02:00
octeontx log: register with standardized names 2021-05-11 15:17:55 +02:00
qat common/qat: support GEN4 devices 2021-07-20 10:32:05 +02:00
zlib log: register with standardized names 2021-05-11 15:17:55 +02:00
meson.build drivers: clean up build lists 2021-04-21 12:37:55 +02:00