From a21b38e17ac5e04b6ded55904dc522bfca4933a5 Mon Sep 17 00:00:00 2001 From: Andrew Yourtchenko Date: Fri, 26 Aug 2022 13:13:20 +0000 Subject: vlib: fix coverity 277203 Fix integer overflow. Type: fix Signed-off-by: Andrew Yourtchenko Change-Id: I72de6f88be064f188204d0f6d3167a3a8d7de58d --- src/vlib/dma/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vlib/dma/cli.c') diff --git a/src/vlib/dma/cli.c b/src/vlib/dma/cli.c index 0ca4a9b6778..1db59c81a2f 100644 --- a/src/vlib/dma/cli.c +++ b/src/vlib/dma/cli.c @@ -109,7 +109,7 @@ test_dma_command_fn (vlib_main_t *vm, unformat_input_t *input, u32 port_allocator_seed; - fill_random_data (from, cfg.max_transfers * rsz); + fill_random_data (from, (uword) cfg.max_transfers * rsz); b = vlib_dma_batch_new (vm, config_index); vlib_dma_batch_set_cookie (vm, b, 0x12345678); -- cgit 1.2.3-korg